Repository navigation
Description
repo:objectstack#1 · os-sales · session_01L6bhgTRxhoKiYcN465k2Eh
Filing gate: ① (user-visible product defect, named seam, reproduced) · Source: fleet · Found-in #35762 (os-dev-report 7033847599, PR #35787)
Suggested-grade: p2 · a wrong count and a duplicated line on the record page 动态 tab; no data is wrong and nothing is refused. Grade and dispatch are left to triage (the seat files only, under the current p1-only order).
What a user sees
On a record of a history-tracked object, the 动态 tab's Changes (变更) chip says the record was edited one more time than it was. Its first "edit" is the record's creation, drawn as field changes from empty values. The All view of the same stream gets it right: it shows the edits plus one separate "Created" row.
Reproduce (measured live on PR #35787's tree, showcase stack, admin@objectos.ai)
- Create a
showcase_account(POST /api/v1/data/showcase_accountwith name, industrytechnology, statusprospect, signed_on2026-07-26). - On the same day, as the same user, make three PATCHes:
{ signed_on }, then{ status, industry }, then{ owner_id: <another user> }. - Open
/apps/showcase_app/showcase_account/record/<id>?related=timelineand press the Changes chip.
Observed: ONE fold row, "Updated Owner, Industry, Lifecycle, 3 more · 4 updates". Expanded, it shows 4 rows, and the 4th is the creation's own audit entry drawn as a field change ("Owner — → Dev Admin; Account Name — → …").
Control, the All chip on the same record: the fold reads "3 updates", with a separate "Created Account" row.
Expected: the Changes chip folds the 3 updates and shows the creation at most once, the way All does.
Seam (read on origin/main c4a73be; the fix route is the dev's to measure)
ui/packages/plugin-detail/src/RecordActivityTimeline.tsx:foldStreamChanges/isStreamFieldChangeaccept an UNPAIREDsys_audit_logcreate entry as a field change, so it joins the same-actor, same-day run.ui/packages/plugin-detail/src/recordTimelineStream.ts(Changes chip): the chip shows field-history entries unpaired, so the creation's audit entry reaches the fold.- Contract text that this contradicts (
recordTimelineStream.ts):auditEntriesToFeedItemssays "the record's creation is the activity stream's own created row, so it is not said twice". - The fold arrived with a3a74f2 (feat(record-page): dense field rows, one-line activity and file-row attachments #35708, for 记录页字段密排(标签在左、值在右,每行 32);互动页签按天分组、每条一行;附件页签改成文件行 #35602). PR test: read four nightly specs where the product now draws what they pin #35787 changed
ui/e2e/live/record-history-display.spec.tsto pin the three updates by content anddata-fold-count == rows, not the exact count, because of this. A fix here should tighten that spec to exactly 3.
Four answers
- Category: ① user-visible defect,
reach:public door (the record page 动态 tab, Changes chip), measured once. - Business reason: anyone who reads a record's history to see how often it was changed (an approver, an auditor, an owner) gets a wrong count and a fake "edit" by whoever created the record. Left alone, the Changes view disagrees with the All view on every record created and edited by one person on the same day.
- Reader who acts: triage grades it; then the lane that owns
ui/packages/plugin-detail(domain:ui) dispatches it. - Dedupe:
repo:objectstack-ai/objectstack is:issue fold creation audit Changes chip→ 11 hits, none about this (nightly-tiers: red on main #35762 itself, [Decision] Field changes are recorded but not shown unless an object opts in: who decides a record shows its change history? #30074 decision closed, QA runs, seat posts);foldStreamChanges→ 1 hit (nightly-tiers: red on main #35762).
Activity
objectstack-fleet commentedon Nov 20, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:ui·pm:queue; rationale: area:ux · Bug · Cosmetic (on the record 动态 tab the Changes chip counts the record's creation as one more edit and draws it as field changes from empty; the All view is right) · users of history-tracked records · reproduced live on PR #35787's tree → p2 under the UX rule · size S. Found in #35762; record-page topic #35590 territory.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Claim: PM loop · 2026-11-20T22:37Z
Area: b1-DB
Session:
session_01L6bhgWdb2isyvQFrgHazQx(area b1-DB; its os-dev subagent runs under the same session)Account:
os-salesBranch: claude/issue-35788-changes-chip-creation
Seat:
repo:objectstack#1Domain:
domain:uiFile surface:
ui/packages/plugin-detail/src/RecordActivityTimeline.tsx,ui/packages/plugin-detail/src/recordTimelineStream.tsand their tests;ui/e2e/live/record-history-display.spec.ts(tightened to exactly 3).Container & model:
S,mode:subagent,model: opus,effort: mediumClause-②: no
Metadata-protocol: none
Premise: re-read on main
170ca481by the area: holds (foldStreamChanges/isStreamFieldChangein RecordActivityTimeline.tsx still take the unpaired create audit row).Basis: card #35788 (thread read 7033941644). Under the maintainer's 2026-11-20 22:31Z–22:32Z order (bugs derived from the record-page / list-page epics, p1 and p2 bugs only).
Resume-from: none
Fold-or-serial: serial; no fold (different mechanism and files from #35840 / #35911). The PR carries
Fixes #35788.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#1 · os-sales · session_01L6bhgWdb2isyvQFrgHazQx
os-dev-report
{ "issue": 35788, "status": "done", "branch": "claude/issue-35788-changes-chip-creation", "pr": "https://github.com/objectstack-ai/objectstack/pull/35957", "session": "session_01L6bhgWdb2isyvQFrgHazQx", "premise_still_valid": true, "summary": "Mechanism measured as the PM assumed: on the Changes chip fieldHistoryEntriesOf unwraps the creation's audit entry (paired onto the created activity row under All), so it reached foldStreamChanges as a bare sys_audit_log field change and joined the same-actor same-day run. Fix at the one place both views share: new isRecordCreationEntry (recordTimelineStream.ts; ledger action 'create', keyed through the spec's RECORD_TIMELINE_FOLDED_ACTIVITY_TYPES) and isStreamFieldChange excludes it, so Changes folds the 3 edits and shows the creation once as its own row; All unchanged. auditEntriesToFeedItems doc corrected to what the code does; live spec tightened to exactly 3 (rows and data-fold-count) plus creation never in the fold and at most once in the stream. Consistent with #30074 ruling (Changes still holds field-history entries only).", "tests": "New top-level describe in plugin-detail src/__tests__/denseActivityRows-35602.test.tsx (3 cases: Changes fold:3 + item:audit:c0; All fold:3 + item:a0 control; rendered Changes chip data-fold-count 3, creation line outside the fold, exactly once). Head 5d9f8e56: the two timeline files Test Files 2 passed (2), Tests 61 passed (61), VERDICT command-exit 0. At 7bb40c13 (pre-merge; merge brought no change to these files): plugin-detail type-check (tsc --noEmit && tsc -p tsconfig.test.json) exit 0; package vitest Test Files 393 passed | 1 skipped (394), Tests 3602 passed | 18 skipped, VERDICT command-exit 0. Ablation via scripts/ablation-replace.mjs on RecordActivityTimeline.tsx (anchor x1->x0, blob 7ff06177ccfd->55e3deed89df): 2 failed | 7 passed (fold:4 vs expected; data-fold-count '4' vs '3'), All control green as expected; restored blob == HEAD 7ff06177ccfd, git diff HEAD empty; src import, no dist leg. First ablation attempt was a no-op refused by the tool (replacement was a substring of the anchor), not counted. Live e2e: NOT MEASURED: Live E2E UI, reason: needs a booted showcase stack + console; CI runs it.", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at 5d9f8e56: 38 commands, all run, each exit 0 captured before any pipe; --ran: '38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED (a DERIVED zero)'. ui vitest scripts/: Test Files 172 passed | 2 skipped, Tests 5111 passed. check:nul-bytes exit 0. check-platform-checklist not owed (no export renamed/removed). CI check-runs on PR #35957: not yet read at report time — in_progress, not waited on.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — relay pr_create x1 (POST /repos/objectstack-ai/objectstack/pulls draft + POST issues/35957/assignees os-sales; read-back identical 5483 bytes), os-dev-report comment x1 via post-stamped.mjs (POST issues/35788/comments). Plus git push x6 (empty-branch probe, 3 commits, merge of origin/main), not REST.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted in PR Acceptance notes, not filed: the standalone creation row on the Changes chip is still worded as field values from empty (the generic unpaired-audit-entry rendering); wording was not in this card's scope" ], "deviations": "Branch merged origin/main once before the PR (§10); whole-package plugin-detail run is from the pre-merge head 7bb40c13 (the merge touched other plugin-detail files, not the fold/stream files), targeted files and all gates re-run at 5d9f8e56. PR body footer uses the AGENTS.md session-URL form only, not the harness's extra robot line; commits carry the model-free trailer pair per AGENTS.md.", "files_changed": [ ".changeset/35788-changes-chip-creation.md", "ui/e2e/live/record-history-display.spec.ts", "ui/packages/plugin-detail/src/RecordActivityTimeline.tsx", "ui/packages/plugin-detail/src/__tests__/denseActivityRows-35602.test.tsx", "ui/packages/plugin-detail/src/recordTimelineStream.ts" ] }