Repository navigation
fix(console): on a phone, a page the assistant opens closes its sheet - #37571
Conversation
A citation chip in the phone assistant sheet opened the cited record section underneath while the sheet stayed over it. A navigation that leaves the page, or a PUSH onto the same page, now collapses the sheet; the desktop rail is unchanged. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CXDoFxnz75MqdAxLSW
…her layout The booted phone check showed a chip in the sheet opened over Home lands on an app's record through another layout, which mounts a new dock host that never saw the navigation. The history entry the sheet was shown on is now kept per tab, so the new host closes it too; a REPLACE never does. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CXDoFxnz75MqdAxLSW
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head b220ce8 · 2026-11-26T14:45Z |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: Inputs read: card #37556 (body, triage, claim, os-dev report), PR #37571 (body, 3-file list, net diff against ① Derived judgments
Graded findings:
② Semver level
③ Boundary flags
Seat questions:
No must-fix. S1 and S2 are should-fix and may land as a follow-up card in the same area. Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对Head-sha:
|
…en; review S1, S2, N1, N3 The move away from the sheet's history entry is noted before the phone flag settles, so an alias landing that replaces its address on mount still closes it. At a desktop width the entry is dropped (tablet turn), and a module copy stands in when sessionStorage throws. Tests pin POP, the alias landing, the turn and the storage failure. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CXDoFxnz75MqdAxLSW
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: This is a delta review. The previous record covered head What I read:
① Derived judgments
Prior ids:
New findings:
② Semver level
③ Boundary flags
Coordinator's checks:
No must-fix. No should-fix remains open. Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对 (delta)Head-sha:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc Landing: ACCEPT 7196340256 (delta contract record 7196322794, PASS) at head
Status: ready + auto-merge (merge queue). On MERGED, #37556 closes by |
Requested by Bill · project thread
Fixes #37556
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
ui/packages/app-shell/src/layout/useConsoleChatDock.tsx: on a phone (the drawer is a bottom sheet over the page), the host closes the sheet when the location moves by a PUSH or POP away from the history entry (location.key) the sheet was shown open on. A PUSH onto the same URL counts (a second click on the same citation chip carries fresh section state to the same URL). A REPLACE never closes it: a page rewriting its own query, the host's handoff hand-over, and an old/ai…link landing with the drawer armed open all stay as they were.ai-chat-dock-sheet-shown-at, cleared whenever the sheet is closed), not in the hook: a chip in a sheet opened over Home lands on an app's record through another layout, which mounts a new dock host that never saw the navigation (found by the first booted check). Where sessionStorage throws, a module copy stands in, so the rule still works for the life of the page.useIsMobileanswersfalseon a host's first render; an app named by its alias lands throughAppContent, which REPLACEs the address on mount, so a rule judged only once the flag settled saw that REPLACE and kept the sheet open.useIsMobile's first-renderfalsecannot tell) the entry is dropped, so turning a tablet portrait, landscape, portrait does not close the drawer on the turn.open_record, list link, open-form) now reveals the page; the chip's click path is not touched..changeset/37556-phone-dock-closes-on-citation.md(patch,@object-ui/app-shell).Read first:
useConsoleChatDock.tsx, the effect under the full-window one and the storage helpers abovehasHandoff.Tests
ui/packages/app-shell/src/layout/__tests__/useConsoleChatDock.phoneCollapseOnNavigate-37556.test.tsx(9): the real host,useChatDockStateand router;useIsMobileis a stand-in with the real hook's timing (falseon the first render, measured in its mount effect, again on resize); stand-in sheet/rail. Cases: a phone chip click (PUSH) closes the sheet and reopening with no target shows the same conversation; a same-URL re-click closes it; Back (POP) closes it; a chip from Home into an app (two layouts, two hosts) closes it and reopening shows the same thread; the alias landing (a parentAppContent-shaped redirect REPLACEs on mount while the new host's flag is held back one task) closes it; withwindow.sessionStoragethrowing, a chip click closes it; a same-page REPLACE leaves it open; a tablet turn to landscape, a chip click there, and a turn back leaves the drawer open; CONTROL: at desktop width the rail stays open after a chip click.collapse()call replaced by a no-op): 6 failed, 3 passed (every closing case red; the REPLACE case, the tablet turn and the desktop control green); restored 9/9.Acceptance notes
Verification
@object-ui/app-shelltype-checkexit 0; derived gate families: see the report. The package's whole suite is left to CI'sTest UI(test-run scope, not a Clause-② narrowing).pnpm --dir ui exec vitest run packages/app-shell/src/layout/__tests__/useConsoleChatDock.phoneCollapseOnNavigate-37556.test.tsx, expected 9 passed.objectstack dev --seed-admin) with theui/console dev server pointed at it, onmain(which now carries PR fix(chatbot): redraw record-citation chips after a reload; keep the cited-section scroll to new clicks #37539, so history draws chips) merged with this branch. Injected, not produced: no producer emits the citations part before cloud 10c, so the run serves the conversation-history read with an answer carrying adata-record-citationspart, and a one-agent catalog because the boot has no model./ai/ask/CONVERSATIONlink lands on Home with the sheet open and 3 chips. Chip click:/apps/com.example.showcase/showcase_field_zoo/record/ID?section=contractor-scope, sheet gone (0 in the DOM), the marked headingContractor scopeat top 45 px, in view. Reopening: the same 3 chips. The same chip again: sheet gone, heading in view.showcase_app) as its package, so the chip lands on/apps/showcase_app/…and the app shell REPLACEs it with/apps/com.example.showcase/…. Sheet gone, heading at top 45 px, in view; reopening shows the same chips; the same chip again closes it again.objectstack-seat5/ai-36996/shots-37556/in the project files (phone-dock-*.pngandphone-alias-dock-*.png, four each, plus the script).🤖 Generated with Claude Code
Generated by Claude Code