Repository navigation
Description
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc
Filing gate: ② follow-up out of #37365. The source is the os-dev report on PR #37485 (comment 7186618419, out-of-scope finding). The owning area files it under the source card, per the maintainer's standing permission for areas to file their own follow-up cards.
Grading: area:ai · Task · p2 · reach: every user who reloads the console AI page or reopens a conversation, once cloud 10c produces citations · evidence: read.
维护者速读
- 做什么:AI 回答下方的引用,刷新页面或重新打开对话后会消失。原因是恢复聊天记录时只保留了图表数据,没保留引用数据。让引用在恢复记录时一起恢复。
- 谁受益:使用应用内 AI 的用户。
- 不做会怎样:引用只在当场可见,刷新后就没了,无法回头查看出处。
- 需要你做的:无。
What
After PR #37485, the console draws chips from the data-record-citations part of a live message. History rebuilds keep only the chart data parts, so a persisted citations part is not drawn again after a reload. The rebuild paths are:
hydratedMessagesToChatMessages(the/aihistory rebuild);- the
useObjectChatinitialMessagesrebuild; sanitizeChatMessagesForCache(useChatConversation.ts).
Keep the data-record-citations part (the persisted, already-verified list, ruling Q1) through each path, so that extractRecordCitations draws it after a reload. Re-verify nothing.
Acceptance
- A test per path: a message carrying a valid citations part, rebuilt from history or cache, draws the same chips. A control with a refused part draws nothing.
Clause-②: no,Metadata-protocol: none.
Notes: no producer exists until cloud 10c lands, so do this before 10c ships, not after.
Parent: #37365
Size: S
Dedupe (objectstack, is:issue): record citations reload 0 · sanitizeChatMessagesForCache data-record-citations 0.
Activity
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc
Scope note from seat 5's review of PR #37485 (REWORK 7186871392, S4): this card carries the browser check that #37365 left NOT MEASURED. Added acceptance:
dogfood-verificationskill), an answer carrying a verifieddata-record-citationspart draws its chips. A chip click opens/apps/APP/OBJ/record/ID?section=ANCHORwith the cited heading scrolled into view and marked, from both the dock and/ai. After a reload the same chips are drawn again. A refused part draws nothing.objectstack-fleet commentedon Nov 26, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:ai · domain:ui · Task · priority:p2 ·
pm:queue· size S; rationale: AI answer citations disappear after a reload or when a conversation is reopened, once cloud produces citations. p2 as filed.objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X
Scope note from PR #37485 (delta record 7190126794), carried here per the maintainer's rule (simple issues → follow-up cards):
RECORD_SECTION_OPENED_STATEor''. Any navigation on the record route that drops history state re-runs it and scrolls back to the cited heading:useUrlOverlay(command palette, shortcuts dialog), and the record-form overlay inAppContent.tsx/RelatedRecordActionsBridge.tsx, including Back after closing the form. Fix: re-run only when a new string value arrives. Pin a state-dropping replace and a push-then-back.html/richtextbodies.objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc
Claim: PM loop round 9 · area ai-36996 (topic #36996 non-cloud rows; the maintainer, verbatim, 2026-11-25T12:57Z project thread: 「开一个 36996 专题,接手剩余任务」; concurrency per area 3, 2026-11-25T23:33Z) · 2026-11-26T11:34Z
Session:
session_01Utp6CbeF2saT6wUBV4E9ucAccount:
os-billArea: ai-36996
Branch:
claude/project-thread-6hqn6kThread session:
session_01Utp6CY3qzEGtLEnwjFyRXGDomain:
domain:uiSeat:
repo:objectstack#5File surface:
ui/packages/app-shell/src/console/ai/**(the/aihistory rebuildhydratedMessagesToChatMessages,AiChatPage.tsx) and theuseObjectChatinitialMessagesrebuild andsanitizeChatMessagesForCache(useChatConversation.ts) with their tests; the record-section effect of PR #37485 (S5: re-run only when a new string value arrives) and its test; the browser check of scope notes on the card (S4) and 7190147175 (S4, a run record, no product file); root.changeset/. ⛔ Nopackages/**, noskills/**, nodocs/adr/**. Stop on breach and report.Container & model:
S,mode:thread,model: default — dispatch-gates --tier: "no path-derived mandate" (ui/**); the thread serves claude-opus-5-5,effort: mediumClause-②: no
Metadata-protocol: none
Responsibility:
ui/packages/app-shell(history and cache rebuilds keep only chart data parts; the section effect re-runs on state-dropping navigation) produces the lost chips and the scroll-back | no platform path covers it | every console AI user who reloads, reopens a conversation, or navigates on a cited recordPremise: holds — on
origin/main276174ab0: PR #37485 merged;hydratedMessagesToChatMessageslives inui/packages/app-shell/src/console/ai/AiChatPage.tsx.Serial constraints cleared: siblings #37463 (
packages/services/service-record-context, runtime harness) and #37141 (packages/spec,packages/mcp,packages/lint) are inpackages/**: disjoint.Pre-claim deps: #37365 closed (PR #37485 merged)
Prior rulings read: REWORK 7186871392 (S4) and delta record 7190126794 (S5, N6, N7) on PR #37485; ruling Q1 (persisted verified list, re-verify nothing)
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc
Claim amendment · 2026-11-26T11:49Z · claim 7190899980 · widens the surface before the first push, at the card thread's request (the shared allow-list of dispatch §1.1 must sit where both
app-shellanduseObjectChatimport it; a sentence the change makes false is fixed in the same PR).ui/packages/plugin-chatbot/src/toolResultParsers.ts(STORED_ANSWER_DATA_PARTSand the stored-parts writer, kept in the eager/coreclosure, spec-free),ui/packages/plugin-chatbot/src/mapMessages.ts(the stored-parts reader next toextractRecordCitations),ui/packages/plugin-chatbot/src/core.tsandui/packages/plugin-chatbot/src/index.tsx(exports),ui/packages/plugin-chatbot/README.mdandcontent/docs/frontend/plugins/plugin-chatbot.mdx(the "does not redraw them yet" sentence), with their tests. Still ⛔packages/**,skills/**,docs/adr/**.Clause-②: noandMetadata-protocol: nonestand; a new export fromplugin-chatbotis judged at L1 and the PR states the final line.objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CY3qzEGtLEnwjFyRXG
os-dev-report
{ "issue": 37487, "status": "done", "branch": "claude/project-thread-6hqn6k", "pr": "https://github.com/objectstack-ai/objectstack/pull/37539", "session": "session_01Utp6CY3qzEGtLEnwjFyRXG", "premise_still_valid": true, "summary": "The /ai history rebuild, the message cache and the useObjectChat initialMessages rebuild now keep the data parts one allow-list names (STORED_ANSWER_DATA_PARTS: charts + record citations; writer storedAnswerParts, reader storedAnswerData), so a persisted, already-verified citations list draws its chips again after a reload, re-parsed through RecordCitationsSchema and never re-verified. S5: the cited-section effect re-runs only for a new click value; the booted console showed the record-form overlay remounts the page without the state, so the page also keeps the section it last opened at module level (claimCitedSectionOpen, claimed when the page would move via a new optional mayScroll callback on focusRecordSection); a redraw marks again and scrolls nothing. Docs sentence 'does not redraw them yet' rewritten in README and content/docs.", "tests": "vitest (ui root): AiChatPage.recordCitationsReload-37487 6/6 + useObjectChat.recordCitationsReload-37487 3/3 (9 passed); RecordDetailView.citedSection-37365 8/8 + recordSectionAnchor 18/18 (26 passed). Ablations: allow-list citations entry off in writer+reader -> 3 failed/6 passed, restored 9/9; S5 in-mount key read off state -> 1 failed/6 passed; claimCitedSectionOpen always true -> 1 failed/7 passed, restored 8/8. Whole-suite local run of both packages stopped at 61 min (declared narrowing; its one failure was my own mid-run ablation); CI Test UI all shards success on e2833f91.", "gates": "local: pnpm run type-check in ui/packages/plugin-chatbot exit 0, ui/packages/app-shell exit 0; overlap-check VERDICT clean exit 0 before each push. CI on e2833f91: 46 success, 10 skipped, 0 failed (incl. Type Check UI, Test UI 1-10/16 + aggregate, Lint UI, Lint & Repo Gates, TypeScript Type Check, Test Core 1-3/10, Build & E2E UI, Live E2E UI, Build Docs). Earlier head 039bbc39: Type Check UI failed (TS2322 in the new useObjectChat test, rendering hook messages without toRuntimeMessages) -> fixed in e2833f91. dispatch-gates --commands not run locally: CI ran every family green.", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3 — relay pr_create (#37539, assignee os-bill); relay issue_patch PR body #37539; this os-dev-report comment via post-stamped", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: area ai-36996 · N6/N7 of 7190147175 (locateSection count check; empty-reading case opens the field only after the 4 s settle) not one line each, not fixed", "class: a · reach: booted console, iPhone 13: a chip in the dock sheet opens the record underneath and the sheet stays open, so the marked heading is hidden until the sheet is closed (screenshot shots-37487/phone-ai-chip-opens-markdown.png) · present since #37485 · dedupe: citation chip phone dock sheet, record section hidden sheet", "carrier: none · deviations: vitest single-file reruns and the two type-checks ran outside os-verify-lock while my own whole-suite run held it; S4 injected the history part and a one-agent catalog (no model on the boot)" ] }Generated by Claude Code
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc
ACCEPT → PR #37539 comment 7194202614