Skip to content

review follow-ups of PR #37889 (AI inquiry page, AppAskPage.tsx) #37908

Description

@objectstack-fleet

repo:objectstack#1 · os-elon-musk · session_016WV4cwGVgec21LwQTtRY85

Filing gate: ③ L1 follow-ups of a landed card's PR (one card per PR, items ticked as done). Source: fleet.
Grading: area:ai · Task · priority:p3 · size S · reach: the AI inquiry page of #37788 (PR #37889), read at L1; none is must-fix (L1-a 7215194705 "Nits", 7216004152 "Nits left for later").
Dedupe: open-issue search "PR #37889": 1 hit before filing, #37858 (the Ask AI button card, which names #37889 only as an overlap); AppAskPage: only #37788 and its siblings.

All four are in ui/packages/app-shell/src/console/ai/AppAskPage.tsx (re-read on main after #37889 merges; line numbers are not carried here):

  • A transient error on the ?c= ownership check is read as "foreign" and drops ?c=; only a definite foreign/other-app answer should fall back to the home state.
  • The ?c= check downloads the full conversation history to read metadata; read the conversation's metadata alone.
  • An app with no _packageId gets a page that cannot create a conversation and says nothing; show a clear state instead.
  • Duplicate suggestions warn on React key; key them so duplicates render without a warning (or drop exact duplicates).

Acceptance: one test per ticked item, in a new test file named for this card.

Activity

  1. added
    area:ai
    on Nov 27, 2026
  2. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ai · domain:ui · Task · p3 · pm:queue · size S; rationale: L1 nits on the AI inquiry page (PR #37889); none is must-fix, and the filer's p3 stands. Recorded 2026-11-27T11:16Z.

  3. added
    domain:ui
    pm:queue
    on Nov 27, 2026
  4. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Claim: PM loop round 2 · 2026-11-28T05:47Z
    Picked by card-pick.mjs --order area:ai --seat repo:objectstack#2 at 2026-11-28T05:42Z, p3 close-out. The maintainer in this seat's project, verbatim: 「并发5」, and the standing 「能合并处理的卡尽量合并处理」.
    Session: session_01L6bhgV6i8jfWwSXjpWJrjA
    Thread session: session_01L6bhgUPnmZSYRP4AXm2rzr
    Account: os-sales
    Branch: claude/project-thread-o6rug1 (from main)
    Domain: domain:ui
    Seat: repo:objectstack#2
    Area: s2-ai
    Cards: #37908 (chain head) and #37959. Fold gates: ① both are L1 follow-ups of the same AI inquiry page, fixed in AppAskPage.tsx and the hooks it calls; ② @object-ui/app-shell, one changeset, same landing and review tier; ③ both graded p3; ④ each box has its own test; ⑤ excluded: none.
    File surface: ui/packages/app-shell/src/console/ai/AppAskPage.tsx, the conversation-list hook it mounts (useConversationList, a backfill-limit option), the conversation metadata read used by the ?c= check, their tests, i18n keys for the no-_packageId state if one is needed, one changeset.
    Container & model: S, mode:thread, model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate", effort: high (reason: the thread session serves effort high)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the AI inquiry page keeps a conversation the user opened on a transient error, reads only what it needs, says why an app without a package cannot start a conversation, and its home state issues no detail GETs beyond the rows it lists.
    Thread-read: none
    Premise: L1 reads of the merged PRs #37889 and #37940; the thread re-reads each on main and drops any box that no longer holds.
    Serial constraints cleared: open PR #37924 touches AppAskPage-37788.test.tsx only. The thread keeps its tests in its own file or merges main if #37924 lands first.

    The PR says Fixes #37908 and Fixes #37959.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Premise corrected · 2026-11-28T05:53Z — the card thread's read on main 7605e0c, accepted by the seat. The card's goal is unchanged.

    • Items 1, 3 and 4 hold as written: a transient error on the ?c= check is read as foreign; an app with no _packageId gets no explanation; the empty-state suggestions are keyed by their text.
    • Item 2, "read the conversation's metadata alone", has no door. GET /ai/conversations/:id answers AiConversationSchema, where messages is required. The spec declares no metadata-only query or route, and the server lives outside this repository.
    • What item 2 measured to waste: when ?c= belongs to the page, the ownership check reads the whole history, then hydration reads it again for the same id. The PR makes the check's read serve hydration, so opening ?c= reads the history once.
    • A conversation of another app is still read once and dropped. That half waits for a metadata-only read on the server; the PR's Acceptance notes say so.
  7. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgUPnmZSYRP4AXm2rzr

    os-dev-report

    {
      "issue": 37908,
      "status": "done",
      "branch": "claude/project-thread-o6rug1",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38201",
      "session": "session_01L6bhgUPnmZSYRP4AXm2rzr",
      "premise_still_valid": true,
      "summary": "Fold of #37908 and #37959 on the AI inquiry page. A failed ?c= check (5xx, network) is now its own verdict that keeps ?c= and offers Try again / New conversation; only a definite 403/404 or another app's conversation opens the home state. Item 2 as corrected on the card (7234948699): the check's read hydrates the thread through a new useChatConversation activeRecord option, so opening ?c= reads the history once. An app with no _packageId draws a notice instead of a dead question box; suggestions are keyed by position; useConversationList takes selectBackfillRows and the page passes its listed rows, so the home state reads at most five detail GETs.",
      "tests": "At 3b446639: 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). Reverse verification at da0ee604 (four source files restored from merge base 7605e0c9, tests kept) -> Tests 7 failed | 16 passed (23), exactly the 7 new tests; restored from HEAD, status clean. Wider run of packages/app-shell/src/console/ai/, packages/app-shell/src/hooks/, packages/i18n/ before the zh-Hant regeneration: 3070 passed, 1 failed (zh-hant-generated), fixed by gen:zh-hant and green in the run above.",
      "gates": "Local at 3b446639: turbo run type-check --filter=@object-ui/app-shell --filter=@object-ui/i18n -> 74 successful, 74 total; dispatch-gates --commands derived 41 commands, all exit 0; --ran reconciliation: 41 derived accounted for, 41 run, 0 NOT-MEASURED (a DERIVED zero, every line with its exit code). CI on the PR: in_progress at report time (14 success, 13 skipped, 28 pending).",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 relay stroke so far: pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/38201/assignees); this report comment is the second",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — a ?c= naming another app's conversation of the same caller is still read once (history included) and dropped; waits for a metadata-only read of a conversation on the server (service-ai, cloud), per the seat's Premise corrected",
        "carrier: none · noted, not filed — not measured: an app row carrying the sys_metadata rehydration sentinel as _packageId would bind the page as if it were a package"
      ]
    }
  8. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Landed · 2026-11-28T08:39Z

    PR #38201 merged at 2026-11-28T08:38Z through the merge queue on the seat's ACCEPT (7235818357), and its Fixes lines closed #37908 and #37959. What changed on the AI inquiry page:

    • A ?c= link to a conversation that fails its check now says so instead of opening silently empty.
    • History is read once per visit, not per render.
    • A workspace with no package shows a notice in place of an empty list.
    • Previews are fetched only for the rows the list shows.

    It was never ejected. pm:dispatched is cleared on both cards.

  9. removed
    pm:dispatched
    on Nov 28, 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:p3

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions