Repository navigation
fix(app-shell): AI inquiry page review follow-ups — a failed ?c= check, one history read, a no-package notice, previews for listed rows only - #38201
Merged
Conversation
…me state The #37833 landing fixture's app carries no package stamp, and the inquiry page now draws its no-package notice there instead of the home state. The two CONTROL cases ask whether the member landed on the page, so they assert the page root. Claude-Session: https://claude.ai/code/session_01L6bhgUPnmZSYRP4AXm2rzr Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head 35c1e39 · cards #37908 #37959 · area s2-ai · 2026-11-28T07:13ZL1 checklist (no review face on this file list: this record is the review of record)
Tier: S. Landing: ready and auto-merge in this stroke. |
This was referenced Nov 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Sales · project thread
Fixes #37908
Fixes #37959
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
All in
@object-ui/app-shell(the AI inquiry page,AppAskPage.tsx, and the two hooks it mounts) plus five newconsole.ai.askPagekeys in@object-ui/i18n.?c=check is not "foreign". The check now has a fourth verdict,failed, for an answer that is neither the conversation nor a definite 403/404 (a 5xx, a network error). It keeps?c=in the address and draws "Couldn't open this conversation" with Try again (re-runs the check) and New conversation. Only a definite answer (403/404, or another app's conversation) still opens the home state and drops?c=.useChatConversationtakesactiveRecord, the host's read ofactiveId, which the first resolve of that id uses instead of fetching it again; any later resolve of that id reads afresh, and a record of another id is ignored._packageId. The page draws "This app can't keep conversations here" with one sentence of why, instead of a question box that cannot start a conversation.EmptyConversationkeys suggestions by position and text, so an entry that declares the same question twice draws both, with no React key warning.useConversationListtakesselectBackfillRows: the rows the caller shows, the only ones whose missing title or preview is read from the detail route (still at mostMAX_PREVIEW_BACKFILL, 20). The page's recent conversations passrecentAskPageConversations, so the home state reads at most the five rows it lists. The selector is read when the list answers, never as an effect dependency (ui AGENTS.md chore: version packages #10); the page passesrefreshKey: packageIdso a package change re-reads.Tests
New top-level
describes in the existing harness files (see Acceptance notes for why not a new file):AppAskPage-37788.test.tsx› "AppAskPage review follow-ups (objectstack#37908)": a 503 check keeps?c=and Try again opens the conversation; a dropped network read isfailed, not foreign; opening this app's?c=issues exactly one GET of that conversation; an app with no package draws the notice, no question box and makes no request; a twice-declared suggestion draws twice with no key warning.useConversationList.test.tsx› "useConversationList selectBackfillRows (objectstack#37959)": details are read only for the selected rows, and only those get previews.Readings at 3b44663
pnpm --dir ui exec vitest run packages/i18n/src/__tests__/zh-hant-generated.test.ts packages/app-shell/src/console/ai/__tests__/AppAskPage-37788.test.tsx packages/app-shell/src/hooks/__tests__/useConversationList.test.tsx: Test Files 3 passed (3), Tests 33 passed (33).git statusclean.pnpm --dir ui exec vitest run packages/app-shell/src/console/ai/ packages/app-shell/src/hooks/ packages/i18n/at the head before the zh-Hant regeneration: 3070 passed, 1 failed (zh-hant-generated: the zh-Hant catalogue must be the generator's output); fixed bypnpm --filter @object-ui/i18n gen:zh-hant, and that test passes in the run above.pnpm exec turbo run type-check --filter=@object-ui/app-shell --filter=@object-ui/i18n: 74 successful, 74 total.dispatch-gates --commandsderived list: 41 derived, all exit 0;dispatch-gates --ranreconciliation: 41 run, 0 NOT-MEASURED (a derived zero, every line with its exit code).Acceptance notes
GET /api/v1/ai/conversations/:idanswersAiConversationSchema, whosemessagesis required, and the spec declares no metadata-only query or route; the route is served byservice-ai, outside this repository. So a?c=naming another app's conversation of the same caller is still read once (history included) and dropped. Not filed, per the seat's correction on the card.describe(ruling record 6583487846), and AGENTS.md wins.AppContent.aiChatEntryGate-37833.test.tsxlands a member on theai:chatpage of an app fixture with no_packageId; its two CONTROL cases asserted the home state and now see the no-package notice (Test UI 5/16 red on 3b44663). They ask whether the member landed on the page, so they now assert the page root (app-ask-page); the route assertion beside each is unchanged. Giving the fixture a package stamp instead moves the app's route segment and reds eight cases, so that was not taken. That file: 13 passed (13) at 35c1e39.useChatConversationas before; this PR changes only the page's own check.sys_metadatarehydration sentinel as_packageIdwould bind the page to that value as if it were a package. Read frompackage-scoped-resolution.tsonly; no console reading was taken.Verification
Two minutes:
pnpm --dir ui exec vitest run packages/app-shell/src/console/ai/__tests__/AppAskPage-37788.test.tsx, expect every test to pass, including the five under "review follow-ups (objectstack#37908)".Read first:
AppAskPage.tsx(the check effect'sfailedverdict and theactiveRecordhand-off), thenuseChatConversation.ts(theactiveIdbranch that spendsactiveRecordonce), thenuseConversationList.ts(selectBackfillRows).Human Minimum
packages/specholds no runtime logic. (not touched)pnpm lintpasses. (CI's Lint UI is the reading)main, one pull request. (a fold of two cards, per the claim)packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgUPnmZSYRP4AXm2rzr
Generated by Claude Code