Skip to content

console: the assistant cannot be opened while a record drawer is open #36998

Description

@os-bob

maintainer · os-bob · session_012dn2AecKpLaYkUtNRiqtby

Filing gate: ③ maintainer-directed (topic child; a shipped surface that cannot be reached). Source: topic #36996.
Grading: area:cloud · Bug · p2 (UX rule) · reach: read, not yet measured — step 1 measures it · evidence: read.

维护者速读

  • 问题:在列表里点开一条记录的右侧抽屉后,AI 助手的入口被抽屉盖住,点不到。用户最想问「这条记录」的时候反而打不开助手。
  • 修法:抽屉标题栏加一个「问 AI」入口,点了先把抽屉展开成记录页,再打开助手。
  • 需要你做的:无。

What

  1. Measure first, in a build that has the assistant: open a record in the drawer from an object list, with the dock collapsed and with it open; record what is covered. If the assistant is reachable in both states, close this card with the reading.
  2. Read: the drawer is a Sheet whose overlay and content sit at z-50 (ui/packages/components/src/ui/sheet.tsx, ui/packages/components/src/custom/navigation-overlay.tsx); the assistant launcher is fixed … z-40 (ui/packages/app-shell/src/layout/ChatDock.tsx). ObjectDataPage hands the overlay no mainContent, so the drawer takes the modal branch. The request already names the drawer's record (chatSurfaceContext.ts), so only the entrance is missing.
  3. Fix: an entry in the drawer bar beside "Open as full page", drawn only where the launcher itself is drawn (same predicate). Click: openDrawerRecordAsPage, then expand the dock.
    UI contract: the drawer bar's existing action slot and the dock's existing state API; no new product-named component or hook.

Out of scope

Pinning the record (sibling: conversation focus); the ask_ai action type.

Acceptance

  • Test: with the assistant available, the entry is in the drawer bar; clicking it lands on the record page with the dock expanded and the composer focusable. Without the assistant, no entry is drawn.
  • All locales carry the label. Container run per AGENTS.md, counts in the PR body.

Blocked-by: none. Same files in flight: #36969 (claim order applies).
Parent: #36996. Reader: domain:ui lane.
Dedupe: chat dock drawer in:title 0 · is:open NavigationOverlay drawer header 0 · is:open ChatDock 2 (#35445, a different defect).

Activity

  1. added theissue type on Nov 24, 2026
  2. added
    priority:p2
    on Nov 24, 2026
  3. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    Contributor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: state pm:queue. Grade, area and type stay as the maintainer filed them. The card's Blocked-by: is none. repo:objectstack#1 holds area:cloud; the card notes #36969 in flight on the same files, so claim order applies.

  4. added
    pm:queue
    on Nov 24, 2026
  5. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    Contributor

    repo:cloud#1 · os-warren · session_01JQwxbZsQf4UKfwRd4Dfrjq

    Claim: PM loop round 1 (epic #36996, handed to repo:cloud#1 by the maintainer 2026-11-24 19:17Z: "36996 你接手整个专题的任务,现在就开专区派发")
    Session: session_01JQwxbZsQf4UKfwRd4Dfrjq
    Thread session: session_01JQwxbZsQf4UKfwRd4Dfrjq
    Account: os-warren
    Branch: claude/project-thread-flsk9s
    Worktree: objectstack (the card thread's own checkout; the branch is platform-assigned)
    Domain: domain:ui (the card's Reader line; area:cloud routes the card to this seat)
    Seat: repo:cloud#1
    File surface: ui/packages/app-shell/src/views/ (ObjectDataPage, recordDrawerStack), ui/packages/components/src/custom/navigation-overlay.tsx only if the bar needs a slot beside the page hop, tests beside them, one changeset
    Container & model: M, mode:thread, model: default (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the console's record drawer (objectstack ui/) draws over the only assistant entry, the top-bar robot | none: the robot and the Cmd/Ctrl+Shift+I toggle both sit under the drawer | every console user with the assistant who opens a record in the side drawer
    Thread-read: 7134671371
    Premise: holds (read on origin/main e1dee7a: the drawer card is fixed z-50 at the right edge, over the top bar's right end where the robot sits; with no list it is also modal; the step-1 browser measurement runs before the fix and is quoted in the PR)
    Serial constraints cleared: #36969 closed (PR #36989 merged); no other in-flight claim on these files known to this seat; sibling #36999 (pin record as a tag) is out of scope here

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

    @objectstack-fleet
    Contributor

    repo:cloud#1 · os-warren · session_01JQwxbZsQf4UKfwRd4Dfrjq
    os-dev-report

    {
      "issue": 36998,
      "status": "done",
      "branch": "claude/project-thread-flsk9s",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37092",
      "session": "session_01JQwxbZsQf4UKfwRd4Dfrjq",
      "premise_still_valid": true,
      "summary": "Premise measured in a browser (showcase app, ui console via Vite, agents endpoint answered with one ask agent): with a record drawer open the top-bar robot is covered (object list and data page, assistant closed) or the assistant drawer itself is covered (assistant open). Both record drawers (RecordStackDrawer for the object list and record pages; ObjectDataPage's modal drawer) now draw an 'AI Assistant' control in their bar through NavigationOverlay's existing toggles slot, gated on useChatDockControl() (non-null only while the runtime serves AI, the robot's gate); a click takes the drawer's page hop, then ChatDockControl.open(). Label reuses topbar.aiAssistant (all ten locales), so no new key and Clause-2 no. Scope note: the card names ObjectDataPage; the object list's drawer covers the robot the same way and gets the same control.",
      "tests": "From ui/ at aeef0e2f: pnpm exec vitest run on recordDrawerAssistant-36998.test.tsx, ObjectDataPage.openRule-35875.test.tsx, recordDrawerStack-26679.test.tsx, ObjectView.recordDrawer-27545.test.tsx -> Test Files 4 passed (4), Tests 41 passed (41). Ablation per gate via scripts/ablation-replace.mjs (source-resolved suite, no dist step): recordDrawerStack 'dock && pane ?' -> 'pane ?' turns 'without the assistant (no dock handle), no entry is drawn' red; ObjectDataPage 'openedRecordId && dock ?' -> 'openedRecordId ?' turns 'without the assistant (no dock handle), the drawer draws no entry' red; both restored to the HEAD blob with git diff HEAD empty. Browser after-click: both drawers land on the record page, drawer gone, robot aria-pressed true, composer textarea takes focus.",
      "gates": "Local: the four vitest files above under os-verify-lock (VERDICT command-exit 0). app-shell type-check NOT MEASURED locally: tsc reads @object-ui/* from dist, not built in this container, every import answers TS2307; declared to CI. Every other family: PR check-runs (at report time 14 success, 15 expected skip, 0 failed, 23 pending on aeef0e2f).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0 write tools; reads only (issue_read x4, subscribe_pr_activity x1)",
      "api_writes": "4 — label-write claim (comment + labels + assign, one relay run), pr_create, issue_patch on the PR body, this report",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: none · noted, not filed — with the assistant drawer open, the object list's record drawer is drawn over it (fixed z-50 card over the rail), so the open assistant is covered too; the new entry is the way out, the overlap itself is layout, not filed"]
    }

    Generated by Claude Code

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cloudpriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions