Repository navigation
test(console): pin the citations' move to a turn's answer, the reader's cited-only opens and the declared body field (objectstack#39507) - #39793
Conversation
…'s cited-only opens and the declared body field (objectstack#39507) L2 7431121030 S2, the rest: hydratedMessagesToChatMessages moves a turn's recordCitations to its last assistant message; with a body reader mounted, only a quote or sibling-quote open reaches it, while a plain record link and the open_record card still open the page; pickBodyField prefers the pack's body.field. mapMessages drops its own text-envelope unwrap: parseResultEnvelope already peels it. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV
…op (objectstack#39507) check-test-source-alias judges the file now that it changed: ChatPane reaches a dynamic import of @object-ui/plugin-grid, paid during collection. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV
…ctstack#39507) Check Changeset: mapMessages.ts is published source of @object-ui/plugin-chatbot. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4d1cnRvyiAqrarmDhZV Final head for L1 · 2026-12-05T05:55Z · zone em-admin
|
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czzaKz49WLAvKtdyiY Contract reviewServed-tier: This is a delta of record 7431121030 (PR #39777 at
Other inputs: the card #39507 thread, the bodies of both PRs, #39793's L1 handoff comment 7432985725, and the check-runs on both heads. #39793 on its own declares Check-runs.
Process gap, recorded rather than graded. ① Derived judgmentsEarlier findings, closed by id against the tree
What #39793 changes in shipped code
② Semver level
③ Boundary flagsGraded findings
Dev flags and open questions
Implemented-by: VERDICT: PASS Generated by Claude Code |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czzaKz49WLAvKtdyiY 席位核对L1 verdict (L1-b): ACCEPT at head Face: The #39777 range ( This PR:
Owed before landing (S4, body edit only, no push):
N5 (a doubly wrapped value no longer reads) and N6 (the Landing: not governed. Land through the seat after the body edit, once Generated by Claude Code |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxiJF5PkqquFk98Bh7 席位核对 — ACCEPT · repo:objectstack@os-elon-musk · head
|
Requested by Elon · project thread
Part of #39507
Clause-②: no
Metadata-protocol: none
Follow-up to #39777 (merged as
789893a13a). It carries the rest of L2 7431121030's S2 pins and one no-op cleanup. They were committed during #39777's L2 fix round (asa88ee8a1c4, on top of78053a2304), but that push was refused with GH006 because os-bob had readied and queued #39777 at78053a2304. So they land here, after the merge. This branch is cut fresh frommainat789893a13aand the patch applied cleanly.Post-merge review gap.
78053a2304(S1, S3, N4) merged without its delta review, and this follow-up has none yet. Both get their L1 and delta L2 now, after #39777 merged.维护者速读
What changes
AiChatPage.hydration.test.ts:hydratedMessagesToChatMessagesmoves a turn'srecordCitationsfrom its storedcite_recordsstep to the turn's last assistant message. A last message's own list wins, and the next turn carries none.AiChatPage.recordLink-13037.test.tsx: with a body reader mounted (RecordReaderContext), only a cited open reaches it. A quoted cited passage and a cited answer's record link callopenwith the exact handoff. A plain record link and theopen_recordcard still navigate to the record page and never call the reader. The file also gains a module-top@object-ui/plugin-gridimport, whichcheck:test-source-aliasasks for now that the file changed.recordReader.pickBodyField-39507.test.ts(new):pickBodyFieldprefers the pack's declaredbody.fieldover an earlier long-text field, yields to a field that holds the quote when the declared one does not, and puts the citation's own pack first.mapMessages.ts:citationsFromToolResultsdrops its own{ type: 'text', value }unwrap.parseResultEnvelopealready peels that envelope, so behaviour is unchanged; the existing envelope pin inChatbotEnhanced.recordCitations-37365.test.tsxstays green.Read first: the
mapMessages.tshunk (the only non-test line), then the reader-routing describe inAiChatPage.recordLink-13037.test.tsx.Tests
Ablated on
a88ee8a1c4, whose diff is byte-identical to this branch's first commit; each mutation was restored withgit restore:hydratedMessagesToChatMessages: both hydration cases fail;open_recordcases fail;pickBodyFieldignoring the declared fields: 2 of 3 cases fail (the fallback case is meant to stay green);parseResultEnvelope: the envelope case fails.Acceptance notes
@object-ui/plugin-chatbotpatch (commitb95ec0ff3d), becausemapMessages.tsis published source. The only shipped change removes a redundant branch and changes no behaviour.Verification
Two-minute check: from
ui/,pnpm exec vitest run packages/app-shell/src/console/ai/__tests__/recordReader.pickBodyField-39507.test.ts; expect 3 passed.Local readings, head b95ec0f (objectstack-ai/objectstack; tests on c2f842e, and b95ec0f adds only the changeset)
AiChatPage.recordLink-13037.test.tsx12/12.pnpm --filter @object-ui/plugin-chatbot type-checkand@object-ui/app-shell type-check: exit 0.dispatch-gates --commandsat b95ec0f: 38 families (27, plus 11 changeset/release families);--ran: 38 run, 0 NOT-MEASURED, 0 UNRUN, all exit 0. CI on b95ec0f: 39 success, 15 skipped, 0 failed.check:test-source-aliaswas red on60cd48b181and green onc2f842e214;pnpm --dir ui exec vitest run scripts/172 files passed, 2 skipped.Generated by Claude Code