Skip to content

37487 跟进:手机上点 AI 引用后,对话面板仍盖住被引用的段落 #37556

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc

Filing gate: ② follow-up out of #37487. The source is the os-dev report on PR #37539 (comment 7192922175, out-of-scope finding, class a). 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 · Bug · p2 · reach: every phone user who clicks a citation chip in the AI dock, once cloud 10c produces citations · evidence: measured (booted console, iPhone 13 profile, screenshot shots-37487/phone-ai-chip-opens-markdown.png in the project files).

维护者速读

  • 做什么:在手机上,点 AI 回答下方的引用,记录页会在底下打开,但 AI 对话面板还盖在上面,被标出的那一段看不到,要手动关掉面板才能看。点引用后应收起面板(或让出位置),让用户直接看到被引用的段落。
  • 谁受益:在手机上使用应用内 AI 的用户。
  • 不做会怎样:手机上点引用像没反应。
  • 需要你做的:无。

What

Since PR #37485, a chip click navigates to /apps/APP/OBJ/record/ID?section=ANCHOR and marks the cited heading. On a phone viewport the AI dock is a sheet over the page, and it stays open after the click, so the marked heading is hidden.

  • Close the dock sheet, or collapse it, when a chip navigates on a viewport where the dock covers the page. Keep the desktop dock as it is (side panel, page visible).
  • The conversation is not lost: reopening the dock shows the same thread.

Acceptance

  • A test: a chip click in the phone dock sheet closes or collapses the sheet; a control at desktop width leaves the dock open.
  • A booted-console check at the phone row (per the dogfood-verification skill): the marked heading is visible after the click. Screenshot in the PR.
  • Clause-②: no, Metadata-protocol: none.

Parent: #37487
Size: XS
Dedupe (objectstack, is:issue): citation chip phone dock sheet 0 · record section hidden sheet 0.

Activity

  1. added
    priority:p2
    pm:queue
    area:ai
    on Nov 26, 2026
  2. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ai · domain:ui · Bug · priority:p2 · pm:queue · size S; rationale: on a phone, clicking an AI citation leaves the chat panel covering the cited section, so the click looks like it did nothing. Measured on the iPhone 13 profile; p2 as filed.

  3. added
    domain:ui
    on Nov 26, 2026
  4. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc

    Claim: PM loop round 10 · area ai-36996 (topic #36996 non-cloud rows; the maintainer, verbatim, 2026-11-25T12:57Z project thread: 「开一个 36996 专题,接手剩余任务」; concurrency per area 5, the maintainer in this project thread 2026-11-26T13:29Z: 「并发可以加到5」) · 2026-11-26T13:31Z
    Session: session_01Utp6CbeF2saT6wUBV4E9uc
    Account: os-bill
    Area: ai-36996
    Branch: claude/project-thread-pgrwny
    Thread session: session_01Utp6CXDoFxnz75MqdAxLSW
    Domain: domain:ui
    Seat: repo:objectstack#5
    File surface: the chip click path in ui/packages/plugin-chatbot/src/RecordCitations.tsx and the AI dock host that owns the phone sheet's open state in ui/packages/app-shell/src/** (the dock or layout component the thread finds, named in its report), with their tests; a booted-console phone screenshot (no product file); root .changeset/. ⛔ No file PR #37539 touches until it lands (AiChatPage.tsx, useChatConversation.ts, RecordDetailView.tsx, recordSectionAnchor.ts, plugin-chatbot toolResultParsers.ts, mapMessages.ts, useObjectChat.ts, core.ts, index.tsx, README, docs mdx); no packages/**, skills/**, docs/adr/**. Stop on breach and report.
    Container & model: XS, mode:thread, model: default — dispatch-gates --tier: "no path-derived mandate" (ui/**); the thread serves claude-opus-5-5, effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: ui/packages/app-shell (the phone dock sheet stays open after a chip navigates) produces the hidden cited heading | no platform path covers it | every phone user who clicks a citation chip in the dock
    Premise: holds — measured on PR #37539's S4 run (shots-37487/phone-ai-chip-opens-markdown.png); chips and their click path are on main c385d3bd1 since PR #37485.
    Serial constraints cleared: sibling #37487 (PR #37539) files are fenced above; siblings #37463, #37141 are in packages/**: disjoint.
    Pre-claim deps: #37365 closed (PR #37485 merged)
    Prior rulings read: os-dev report 7192922175 on #37487 (class a finding)

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 26, 2026
  6. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CXDoFxnz75MqdAxLSW
    os-dev-report

    {
      "issue": 37556,
      "status": "done",
      "branch": "claude/project-thread-pgrwny",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37571",
      "session": "session_01Utp6CXDoFxnz75MqdAxLSW",
      "premise_still_valid": true,
      "summary": "On a phone the console dock host (ui/packages/app-shell/src/layout/useConsoleChatDock.tsx) now closes the bottom sheet when the location moves by a PUSH or POP away from the history entry the sheet was shown open on (same-URL PUSH included, so a re-click of the same chip closes it again); REPLACE never closes it; the desktop rail is unchanged and the conversation is kept. The shown-on entry is kept per tab in sessionStorage because the first booted check showed a chip in a sheet opened over Home lands through another layout, which mounts a new host; a hook-local rule left the sheet open there (fixed in the second commit). No file PR #37539 touched was edited; its merge at ebe35f4532 is not needed by this branch.",
      "tests": "head b220ce83: vitest packages/app-shell/src/layout/__tests__/useConsoleChatDock.phoneCollapseOnNavigate-37556.test.tsx -> Tests 5 passed (5), lock VERDICT command-exit 0. Ablation (collapse() replaced by no-op on disk, committed tree restored by git checkout): Tests 3 failed | 2 passed (5), VERDICT command-exit 1 (the three phone-click cases red; REPLACE case and desktop control green); restored 5/5. @object-ui/app-shell pnpm run type-check: exit 0 (head d2fec6fe; b220ce83 adds only same-file code and the test, CI Type Check UI success on b220ce83). Whole @object-ui/app-shell suite: not run locally (declared narrowing; ~1 h locally on #37487), CI Test UI 16/16 shards success on b220ce83. Booted-console phone check (iPhone 13, local merge with PR #37539 head so history draws chips, citations part and one-agent catalog injected): chip click -> /apps/com.example.showcase/showcase_field_zoo/record/ID?section=contractor-scope, sheet 0 in DOM, heading Contractor scope top=45 inView=true; reopen -> sheet with same 3 chips; same chip again -> sheet 0, heading in view. Screenshots objectstack-seat5/ai-36996/shots-37556/ (4 png + script).",
      "gates": "local: the 38 dispatch-gates --commands families on head b220ce83, all exit 0; dispatch-gates --ran: 38 run, 0 NOT-MEASURED (derived zero), record objectstack-seat5/ai-36996/card-37556/gates-ran-b220ce83.txt. overlap-check --branch=HEAD: VERDICT clean exit 0 before each push. CI on b220ce83: 55 check-runs, 40 success, 15 skipped, 0 failed (incl. Test UI 1-9/16 and summary, Lint UI, Type Check UI, Build & E2E UI, Live E2E UI, Test Core, Dogfood Regression Gate, Check Changeset, PR-body guards, Governed Surface Queue Guard, Lint & Repo Gates, TypeScript Type Check).",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0 — no MCP GitHub calls",
      "api_writes": "3 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + issue assignees os-bill), relay issue_patch PATCH /repos/objectstack-ai/objectstack/issues/37571 (PR body after the second commit), this os-dev-report comment POST /repos/objectstack-ai/objectstack/issues/37556/comments; plus 2 git pushes",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "none"
      ]
    }

    Generated by Claude Code

  7. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CXDoFxnz75MqdAxLSW
    os-dev-report

    {
      "issue": 37556,
      "status": "done",
      "branch": "claude/project-thread-pgrwny",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37571",
      "session": "session_01Utp6CXDoFxnz75MqdAxLSW",
      "premise_still_valid": true,
      "summary": "Rework round for seat REWORK 7195422188 (contract review 7195408408). S1: the move away from the sheet's history entry is now noted on the navigation itself, before the phone check, so a landing that REPLACEs its address on mount (AppContent's alias redirect) while useIsMobile still reads its first-render false no longer keeps the sheet open. N1: at a desktop width (read off window.innerWidth, not the first-render isMobile) the stored entry is dropped. N3: jsdoc corrected and a module-level copy stands in when sessionStorage throws. S2: a POP case is pinned. N2, N4 accepted as is. Surface unchanged: useConsoleChatDock.tsx and its test only.",
      "tests": "head e4692c39: useConsoleChatDock.phoneCollapseOnNavigate-37556.test.tsx -> Tests 9 passed (9), lock VERDICT command-exit 0. New tests against the b220ce83 hook: 3 failed (alias landing, sessionStorage throwing, tablet turn) | 6 passed. Ablation (collapse() -> no-op, committed tree restored): Tests 6 failed | 3 passed (9), VERDICT command-exit 1; restored 9/9. @object-ui/app-shell pnpm run type-check: VERDICT command-exit 0. Whole app-shell suite left to CI Test UI (test-run scope). Booted phone check (iPhone 13, origin/main incl. #37539 merged with this branch; citations part and one-agent catalog injected; object read served with the app NAME showcase_app as package): chip -> /apps/showcase_app/... REPLACEd to /apps/com.example.showcase/...?section=contractor-scope, sheet 0 in DOM, heading top=45 inView=true; reopen shows same 3 chips; same chip again closes it. Shots objectstack-seat5/ai-36996/shots-37556/phone-alias-dock-*.png (4) plus the earlier phone-dock-*.png.",
      "gates": "local: 38 dispatch-gates --commands families on e4692c39, all exit 0; --ran: 38 run, 0 NOT-MEASURED (derived zero); record objectstack-seat5/ai-36996/card-37556/gates-ran-e4692c39.txt. overlap-check: VERDICT clean exit 0 before push. CI on e4692c39: 55 check-runs, 40 success, 15 skipped, 0 failed (Test UI aggregate and its affected legs, Type Check UI, Lint UI, Build & E2E UI, Live E2E UI, Check Changeset, PR-body guards, Lint & Repo Gates, Governed Surface Queue Guard all success).",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 this round — relay issue_patch PATCH /repos/objectstack-ai/objectstack/issues/37571 (PR body), this os-dev-report comment POST /repos/objectstack-ai/objectstack/issues/37556/comments; plus 1 git push. (Round 1: pr_create, issue_patch, os-dev-report 7195250395.)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "none"
      ]
    }

    Generated by Claude Code

  8. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc

    ACCEPT → PR #37571 comment 7196340256

  9. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc

    Merged: PR #37571 at 1afb6d42aa closed this card by Fixes. Delivered: on a phone, a PUSH or POP away from the history entry the dock sheet was shown on collapses the sheet (across layouts, kept per tab, in-memory fallback), a REPLACE never does, including one issued before the phone flag settles; the entry is dropped at desktop width; the conversation is kept. Phone screenshots of the alias path in the PR. pm:dispatched removed.

  10. removed
    pm:dispatched
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions