Repository navigation
Description
epic:#5027#1 · hotlong · session_01Q4EjjMUfmNYTem26rXLFUf
Filing gate: ④ topic child. Source: topic #37853 (Jack: 「"页面里加按钮"的需求 作废」 06:28Z; card 「撤掉 ask_ai」 06:30Z; 「问 AI」 06:33Z; 「同意,立专题卡,非 cloud 的任务,让 objectstack #3 座位接手」 07:12Z, all 2026-11-27). Business reason: carried by the parent.
Parent: #37853 (rulings, target experience, card table, topic acceptance). Evidence: an independent Fable review of objectstack and cloud main (2026-11-27) checked every file:line below.
Owner: repo:objectstack#3 (Jack 07:12Z 「非 cloud 的任务,让 objectstack #3 座位接手」). Reserved under topic #37853 (pm:epic), not pm:queue: other seats leave it.
Grading: area:ux · Task · p2 · size S–M · window 19.1 (Jack 07:12Z).
Blocked-by: C4 (#37860) (header row); cloud C6 (objectstack-ai/cloud#5113) (focus stored in conversation metadata).
Dedupe: searched favorite conversation: none.
维护者速读
- 是什么:抽屉顶部 ☆ 收藏会话;收藏的会话出现在侧边栏「收藏」,点开在原地的抽屉里接着问,不跳页。
Background (verified)
- Favourites exist for records etc.: record ☆, sidebar group, Cmd+K; stored in user state
ui.favorites; types are object/dashboard/page/report/record/view/nav, no conversation;hrefrequired; max 20 (context/FavoritesProvider.tsx:46-62,144).
What to do
- Add a
conversationtype toFavoritesProvider: conversation id, title, agent;hrefpoints at the conversation URL as a fallback. - ☆ in the drawer header (C4 (入口专题 C4:主动关掉再点「问 AI」即开新会话(按 A5 分类表,只用 forceNew)+ 抽屉顶部改为标题、+、历史图标 #37860) leaves its slot).
- Sidebar favourite rows get a non-link activation path: a conversation favourite calls
control.open({agent, conversationId})and opens in place (no navigation, not full screen). - Deleted or unreadable conversation → the entry shows as stale and can be removed.
- Title follows the conversation's latest title; focus is read back from
metadata(C6 (objectstack-ai/cloud#5113)).
Acceptance
- Favourite → sidebar; clicking it opens the drawer in place on that conversation; stale entries handled; limit 20 respected.
Activity
objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Claim: PM loop round 1
Session:
session_01L9qibyUSf2nKJWW6qBemSUThread session:
session_01L9qibxdwshRvTk3qXc7A6AAccount:
os-teslaBranch:
claude/project-thread-cw7d7zWorktree:
objectstack-issue-37863Domain:
uiArea:
o3-askai(topic #37853, C8)Seat:
repo:objectstack#3File surface:
ui/packages/app-shell/src/context/FavoritesProvider.tsx;ui/packages/app-shell/src/layout/{UnifiedSidebar.tsx,contentItemTile.tsx,SidebarItemMenu.tsx,conversationFavorites.ts (new),ChatDock.tsx,ChatDockConversation.tsx}(the last two only for the ☆, after C4 merges);ui/packages/app-shell/src/hooks/{useConversationList.ts,useConsoleChatDock.tsx}; the matching__tests__;ui/packages/i18n/src/locales/**(11 packs, zh-Hant generated);.changeset/**(stop on breach; explain in the report)Container & model:
M,mode:thread,model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate",effort: highClause-②: no (favourites are opaque user state that the server does not type-check; no spec or metadata change)
Metadata-protocol: none
Responsibility: favourite conversations: the drawer ☆, a favourites section in the sidebar, opening in place. Ruled by the seat: (1) the card's item 5 (focus read back from metadata) is narrowed out. Focus restore is C5 #37861's, and this card only makes a favourite open the same target as a history row (ADR-0057 A5 row 5). (2) On the A4 问 AI page, where
open()returns early for a non-handoff target (useConsoleChatDock.tsx:184-185), a favourite falls back to href navigation to its/ai/…address. Route: idconversation:ID, storing conversationId and agent, href fromaiAddressOf; the sidebar reads the details of shown conversation favourites (≤ 8) once on mount, refreshes the label when the title changed and marks it unavailable when unreadable (in memory only).Thread-read: none
Premise: holds on origin/main 4de4e3e. The type table is at FavoritesProvider.tsx:62 (no conversation type), href is required, and the cap of 20 is at :144.
control.openis at useConsoleChatDock.tsx:182, and with a target it only expands the sidebar, so opening in place works. The sidebar favourite row is a Link (UnifiedSidebar.tsx:693-713) and needs a non-link branch. Cloud C6 (cloud#5113) is merged per epic:#5027#1. Jack's ruling 7221127130 starts it now.Serial constraints cleared:
C4 PR #37970 draws the new drawer header row ("No ☆ (C8)"): the provider, sidebar, unavailability and title work goes first on main; the ☆ is added after C4 merges, via a real merge of main (no rebase, no force-push). The thread runs overlap-check against #37970, #37924 and the other open 问 AI PRs before its first push.objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#3 · os-tesla · session_01L9qibxdwshRvTk3qXc7A6A
os-dev-report
{ "issue": 37863, "status": "done", "branch": "claude/project-thread-cw7d7z", "pr": "https://github.com/objectstack-ai/objectstack/pull/38005", "session": "session_01L9qibxdwshRvTk3qXc7A6A", "premise_still_valid": true, "summary": "Conversation favourites (type conversation, id conversation:ID, conversationId + agent, href = the /ai address) count against the content cap of 20. The sidebar Favorites row opens the drawer in place via useChatDockControl().open({agent, conversationId}) and follows the address only with no host, on the A4 ask page (seat ruling) or for a modified click. Each shown conversation favourite is read once per mount (readConversationRow): a moved label is written back with refreshLabel; 404/403 marks it unavailable in memory (struck through, aria-disabled, sr text, inert click, still removable). The drawer header star is NOT in yet: it waits for C4 #37970 and lands in this PR by a real merge of main; focus restore is narrowed out to C5 per the claim.", "tests": "New UnifiedSidebar.conversationFavorites-37863.test.tsx at f095b9bd: 15/15 passed. Related suite at f095b9bd (122 app-shell test files naming UnifiedSidebar/FavoritesProvider/useFavorites/ContentItemTile/useConversationList/SortableFavoriteRows/SidebarItemMenu + all 110 i18n __tests__): 230 files passed, 2798 tests passed, 13 skipped. Ablations via ablation-replace.mjs, each restored to HEAD (blob == HEAD, git diff HEAD empty): row onClick removed -> 6/15 red; 404/403 read as failure -> 3/15 red; label write-back removed -> 2/15 red. pnpm --filter @object-ui/app-shell run type-check: exit 0.", "gates": "Local derived set (dispatch-gates --commands, 41 families) run on the branch tree (f095b9bd + README commit 41071e92 landing mid-run, docs-only): every command exit 0 (captured before any pipe); dispatch-gates --ran at 41071e92: 41 derived, 41 run, 0 NOT-MEASURED, 0 UNRUN. CI at 41071e92 (pr-state.mjs): 45 success, 13 expected skip, 0 unexpected skip, 0 failed, 0 pending; mergeable_state clean. overlap-check: clean vs main, #37989, #37970 (auto) and #37924, #37970, #37968 (named).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "6 — issue_read x2, pull_request_read x2, get_session x1 (reads only), subscribe_pr_activity x1 (harness); no MCP write", "api_writes": "2 — pr_create via fleet-write relay (POST /pulls + POST /issues/38005/assignees), this os-dev-report comment via post-stamped", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: seat — README.md (ui/packages/app-shell) gained one paragraph per ui AGENTS.md commandment #2; outside the claim's first file list, please amend the surface", "carrier: none — a conversation deleted while the sidebar stays mounted is marked only on the next mount (noted in Acceptance notes)" ] }Generated by Claude Code
objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Claim amendment 1 to 7221246375. It records the one file draft PR #38005 (head
41071e92) touches outside the claimed surface, from report 7222360447.File surface adds:
ui/packages/app-shell/README.md, one paragraph. ui/AGENTS.md item 2 requires the docs to move with the change.The ☆ in the drawer header follows after C4 PR #37970 merges, via a real merge of main, as the claim's serial constraint says.
Everything else in the claim is unchanged.
objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#3 · os-tesla · session_01L9qibxdwshRvTk3qXc7A6A
os-dev-report
{ "issue": 37863, "status": "done", "branch": "claude/project-thread-cw7d7z", "pr": "https://github.com/objectstack-ai/objectstack/pull/38005", "session": "session_01L9qibxdwshRvTk3qXc7A6A", "premise_still_valid": true, "summary": "Delta over report 7222360447. 8aa37202 is a real merge of origin/main (C4 #37970 at 4af32b99), clean, no conflict. 33463930 adds the drawer header star: ChatDockConversationActions gains `agent` (route name, reported by ChatDockConversation); DockHeaderButtons draws DockFavoriteButton first (before +) in the rail, the full window and the phone sheet once the first send created the thread; it toggles conversationFavoriteItem (label = header label, else 'New conversation'), aria-pressed while starred, names common.addToFavorites / common.removeFromFavorites; while starred, the stored label follows the header label (refreshLabel through a ref, ui AGENTS.md #10). 3141f4db: the star cases wait for the header + the body's report draws (the report lands in an effect after the body mounts; the first run of an ablation showed the race). The PR body still says the star waits for C4 (stale); the relay refuses a body patch that opens with the attribution block, so the seat record carries it.", "tests": "New ChatDock.favoriteStar-37863.test.tsx at 3141f4db: 8/8, three consecutive runs green. Ablations via ablation-replace.mjs, each restored to HEAD: star render removed -> 6/8 red; label follow removed -> 2/8 red. Related suite at 3141f4db (147 app-shell test files naming UnifiedSidebar/FavoritesProvider/useFavorites/ContentItemTile/useConversationList/SortableFavoriteRows/SidebarItemMenu/ChatDock/chatDockTarget/useConsoleChatDock + 110 i18n __tests__): 256 files passed, 3151 tests passed, 13 skipped. turbo build app-shell^... then pnpm --filter @object-ui/app-shell run type-check: exit 0.", "gates": "Local derived set at 3141f4db (41 families, merge base 4af32b99): every command exit 0, captured before any pipe; --ran: 41 derived, 41 run, 0 NOT-MEASURED, 0 UNRUN. CI at 3141f4db (pr-state.mjs): 45 success, 13 expected skip, 0 failed, 0 pending; mergeable_state clean.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0 since the first report", "api_writes": "1 — this delta os-dev-report comment via post-stamped", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: seat — ChatDock.test.tsx (C4) awaits only the body before reading the header the body's report draws; the same race this delta fixed in its own file. Not touched here." ] }Generated by Claude Code
objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Claim amendment 2 to 7221246375, after amendment 1 (7222387748). It records a second file that draft PR #38005 (head
3141f4db) touches outside the claimed surface. L1-c found it in its ACCEPT 7223685928.File surface adds:
ui/packages/app-shell/src/layout/chatDockTarget.ts, +2 lines. These add the optionalagentonChatDockConversationActions, which the drawer header's ☆ needs to store the conversation's route name. The ☆ came in by a real merge of main after C4 #37970 merged (8aa37202,33463930), as the claim's serial constraint said.Everything else in the claim is unchanged.