Repository navigation
feat(app-shell): one empty-conversation layout for the AI home, the full-window drawer and the narrow drawer - #38011
Conversation
…e drawer The AI home page's home state and the console drawer's empty conversation now draw one component, EmptyConversation: a time-of-day greeting (or the entry's declared title on the AI home), a line on what to ask, the composer slot, suggestions that send or fill the composer by their mode, and the recent conversations with their titles. Large on the AI home and in the full-window drawer, compact in the rail and the phone sheet. ChatbotEnhanced gains renderEmptyState with send and fill actions; the ask agent's drawer suggestions follow the kind of page in view, and the new strings are in every locale. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibwARdVa47nQacLfco1
…he model selectDrawerRecent and DRAWER_RECENT_COUNT move from EmptyConversation.tsx to emptyConversationModel.ts, so the component file exports components only (react-refresh/only-export-components). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibwARdVa47nQacLfco1
|
repo:objectstack#3 · os-tesla · session_01L9qibvMMgnKA797JY46H9i Contract review brief — PR #38011 @
|
|
repo:objectstack#3 · os-tesla · session_01L9qibvMMgnKA797JY46H9i Contract reviewServed-tier: Read: card #37862 (body, claim 7221234060, os-dev-report 7222350321, claim amendment 7222366115), PR #38011 (body, 23-file list), the net diff ① Derived judgmentsEvery public-surface change in the diff, each checked against the declaration and the changeset:
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibvMMgnKA797JY46H9i L1-c, the seat's L1 thread · 2026-11-27T16:01Z 席位核对 — L1 @
|
The drawer reads the caller's newest conversations at the AI home's page size (DRAWER_RECENT_FETCH_LIMIT = ASK_RECENT_FETCH_LIMIT), so a caller with many app-home or other-agent threads still sees the drawer agent's own. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibwARdVa47nQacLfco1
|
repo:objectstack#3 · os-tesla · session_01L9qibvMMgnKA797JY46H9i Contract reviewServed-tier: This is a delta review on top of the PASS at
I read card #37862's new comments (7222625442 and 7222646032), the current PR body, the net diff ① Derived judgments
② Semver levelUnchanged from
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibvMMgnKA797JY46H9i L1-c, the seat's L1 thread · 2026-11-27T17:01Z 席位核对 — L1 delta @
|
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Landing · 2026-11-27T17:03Z · zone
|
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 46038762113 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Requested by Tesla · project thread
Fixes #37862
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
What changes
One component,
EmptyConversation(console/ai/EmptyConversation.tsx), with its rules inconsole/ai/emptyConversationModel.ts. Seat rulings on the claim (7221234060): the AI home uses the entry's declaredtitlewhen it has one, else the greeting; the drawer always greets.largeon the AI home and in the full-window drawer,compactin the rail and the phone sheet (ChatDockConversationmapspresentation: 'full'to large,rail/sheetto compact).home.greeting*,home.greetingSeparator,home.greetingEnd): no new greeting strings.sendsends the text as the first message;fillputs it in the composer, focused, caret at the end, and sends nothing. The AI home's own suggestions (from the entry'sparams) send, as before. In the drawer, theaskagent's suggestions follow the page in view, read off the surface the console already sends the agent (ChatPane'ssurfaceContext): a record (its page, or the list's record drawer) gets "Summarize this record" and "What is related to this record?", which fill; an object list, a dashboard and a report get two questions each, which send. Any other page, and any other agent, keeps the agent's starter suggestions, which send.?c=), now drawn by the sharedRecentConversationList. In the drawer: the drawer agent's threads (alias-aware, as the history scopes them), not the AI home's own (metadata.activePackageId), three in compact and five in large, opened in the drawer through the history's ownopenConversation. A list that has not answered, or failed, draws nothing; an empty list draws no section in the drawer.ChatbotEnhanced.renderEmptyState(@object-ui/plugin-chatbot): a host's empty conversation drawn in place of the built-in one while there is no message, given{ send, fill }.fillwrites through the textarea prototype's value setter so React'sonChange(the host'sonInputChange) runs. Without the prop nothing changes.ChatPane.emptyConversation: the drawer opts in;AiChatPageand the AI home's conversation state do not, so their pane keeps the built-in empty state.console.ai.suggestionsLabel(the suggestions group's accessible name) andconsole.ai.suggestions.page.{record,list,dashboard,report}.*(eight), in the ten hand-written packs;zh-Hantregenerated.Tests
emptyConversationModel-37862.test.ts: greeting hour boundaries, the name fallback, the page kind off each surface shape, the drawer's suggestions and modes per page kind and agent, the AI home's suggestions.ChatDock.emptyConversation-37862.test.tsx(realChatDockConversation,ChatPane,ChatbotEnhancedand conversation hooks over afetchstub): compact in rail and sheet, large in full; the greeting names the user; on a record a suggestion fills the composer and creates no conversation; on a list a suggestion sends and creates one; 「最近会话」 lists the ask threads only, newest three, and a click opens one in the drawer; no section when there are none.ChatbotEnhanced.renderEmptyState-37862.test.tsx: the host state replaces the built-in one (control without it), is gone once there is a message,sendsends,fillfills, focuses, places the caret, firesonInputChangeand sends nothing, and replaces what the box held.AppAskPage-37788.test.tsx: test ids moved to the shared component's; the fallback case now expects the greeting where it expected "Ask your data".Ablation (on disk, restored from the commit), each red exactly one case: fill mapped to send in
ChatPane→ the record case; size always compact → the size case;fillthrough the plain.valuesetter → theonInputChangecase; the drawer recent without theactivePackageIdfilter → the 「最近会话」 case.Readings
bf9d5b8f(every ui test underapp-shell/src/console/ai/,app-shell/src/layout/,plugin-chatbot/src/): 279 files / 2428 tests passed. After the last source change (b41c6ea0): the three C7 files plusAppAskPage-37788, 29 passed.packages/i18n/tests: 108 files, 1869 passed, 13 skipped.app-shell/src/__tests__/(product-neutral ratchet among them) and the clickable-non-control census: 27 files / 480 passed.pnpm --filter @object-ui/app-shell run type-check(src andtsconfig.test.json) andpnpm --filter @object-ui/plugin-chatbot run type-check: exit 0, after building@object-ui/app-shell^....dispatch-gates --commandsatb41c6ea0: 41 derived families run, each exit 0;--ranreconciliation: 41 derived, 41 run, 0 NOT-MEASURED.overlap-check.mjs --pr=37970,37924,37989,38004,38005againstorigin/main30a8047b: all merge cleanly.b25938f9, after the main merge and the F2 change:@object-ui/app-shell^...rebuilt 72/72; speccheck:generated14 of 14 up to date; app-shell and plugin-chatbot type-check exit 0; vitest overconsole/ai,layout, app-shell__tests__, plugin-chatbot and i18n: 417 files, 4818 passed, 13 skipped;dispatch-gates --commandsre-derived the same 41 families, each exit 0,--ran41 run, 0 NOT-MEASURED;overlap-check.mjs --pr=37924,37989,38004,38005againstorigin/main126acf6b: all merge cleanly.Acceptance notes
composerslot and draws none in the drawer.plugin-chatbot/src/chat/types.ts, whereChatbotEnhancedPropsdeclares the newrenderEmptyStateprop. Reported to the seat with this PR.pickGreetingKey(console/home/HomePage.tsx), outside this card's surface; Home still uses its own; the two agree today. Noted, not filed (carrier: none): not one of the three filing classes.4af32b99(15:55Z). This branch mergedorigin/mainwith it as a real merge (775b0594, no conflict, no rebase);b25938f9then takes L2's F2 nit (the drawer's recent-conversation fetch size is the namedDRAWER_RECENT_FETCH_LIMIT, equal to the AI home'sASK_RECENT_FETCH_LIMIT, 50).Verification
Read first, by risk:
ui/packages/plugin-chatbot/src/ChatbotEnhanced.tsx:fillComposerand therenderEmptyStatebranch.ui/packages/app-shell/src/console/ai/ChatPane.tsx:renderEmptyState(the mode mapping) andemptySuggestions.ui/packages/app-shell/src/console/ai/emptyConversationModel.ts:pageKindOfSurface,drawerSuggestions,selectDrawerRecent.Two-minute check:
pnpm --dir ui exec vitest run packages/app-shell/src/layout/__tests__/ChatDock.emptyConversation-37862.test.tsx. Expected: 6 passed.Generated by Claude Code