Skip to content

AI 问询首页 T3:首页列出本应用的最近对话 #37790

Description

@objectstack-fleet

epic:#5027#1 · hotlong · session_01Q4EjjMUfmNYTem26rXLFUf

Filing gate: ① maintainer-asked. Jack in the seat thread, 2026-11-27: 「立卡派发」 (02:37Z); route ruling 「先内置页面,再做页面积木」 (02:41Z card); 「我们是一个开发平台,你搭的入口页面必须是通用的」 (02:51Z); 「用fable评审一下完整的首页方案,我现在只要考虑这一个页面」 (03:07Z); ADR-0057 conflict ruling 「做首页,本页隐藏机器人」 (03:16Z card).
Plan: /mnt/project-files/ai-home/plan-v1.md, Fable review with file:line evidence /mnt/project-files/ai-home/fable-review-v1.md (objectstack da31daff, cloud 917f57c). Mockup: https://claude.ai/artifact/SS7UdUYXethLuvV8f5D7JY.
Parent: objectstack-ai/cloud#5027 (ask experience). Trigger app: brightrule (a policy-inquiry app whose only AI entry today is the top-right robot).
Grading: area:ai · Task · p2 · size S · reach: the ai:chat page.
Dedupe: searched recent conversations activePackageId: none.
Blocked-by: #37788

维护者速读

  • 是什么:AI 问询页首页态下方列"最近的对话",只列本应用、从这一页发起的对话(最多 5 条),另有"全部对话"打开右侧抽屉的历史(已砍:与 ADR-0057 修订 A4「本页隐藏机器人」冲突,见席位评论)。
  • 已定:只算本页发起的,抽屉里的不算(Jack 未反对的默认,03:14Z)。
  • 要你做什么:无。

Background

What to do

  1. On the home state, fetch the caller's latest 50 conversations (existing list call), keep those whose metadata.activePackageId is this app's package, show the newest 5 (title + relative time); click opens it in the page (?c=).
  2. "全部对话" opens the drawer's history (useOpenAssistant or the existing opener), not a full page. Cut by seat repo:objectstack#1 (Premise corrected, see its comment): on this page ADR-0057 Amendment A4 keeps the drawer closed and its triggers inert. An in-page "view all" is a later card if someone asks.
  3. Extend the client conversation type to carry metadata. No server change in this card (a server-side package filter is a later card if 50 proves too few).

Acceptance

  • A conversation of another app, or one started in the drawer, does not appear; empty state when none.
  • Tests for the filter and the empty state.

Activity

  1. added
    enhancement
    priority:p2
    pm:blocked
    domain:ui
    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 · Feature · priority:p2 · pm:blocked · size S; rationale: AI ask home page T3, the recent conversations of this app on the home page. p2 as filed; blocked by #37788.

  3. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Premise corrected · 2026-11-27T11:02Z · #37790 (area o1-D)

    Ruling-ref: 「做首页,本页隐藏机器人」 — the maintainer's ruling recorded in #37788's filing-gate line, written down as ADR-0057 Amendment A4 (PR #37825), Decision bullet "No drawer on the page": "While the page is the active route the drawer is closed and its triggers are hidden or inert … No address, the /ai… addresses included, stacks a second ask conversation on the page. A build hand-off from the page still opens the drawer."

    • Original premise: item 2, "全部对话" opens the drawer's history from the page's home state.
    • Reading: on the ai:chat page the drawer is closed and only a build hand-off opens it (A4, merged on main); opening the drawer for history from this page puts a second ask surface on the screen A4 rules out.
    • Change: item 2 is cut (struck in the body). Items 1 and 3 stand unchanged: this app's newest 5 page-started conversations, opened in the page by ?c=; the client conversation type carries metadata. An in-page "view all" is a later card if someone asks; not filed.
  4. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 2 · area o1-D (hand-off 7209013967 from epic:#5027#1, accepted 7210179549 on the maintainer's tap 「全接,开新专区」; assignee moves from hotlong as the hand-off asks: "reassign on your claim") · 2026-11-27T11:04Z
    Session: session_016WV4cwGVgec21LwQTtRY85
    Account: os-elon-musk
    Branch: claude/issue-37790-ask-recent
    Worktree: objectstack-issue-37790
    Domain: domain:ui
    Area: o1-D
    Seat: repo:objectstack#1
    File surface: ui/packages/app-shell/src/console/ai/AppAskPage.tsx, ui/packages/app-shell/src/console/ai/appAskPageModel.ts, ui/packages/app-shell/src/hooks/useChatConversation.ts (the client conversation type carries metadata; list call unchanged), new test file(s) named for this card, ui/packages/i18n/src/locales/*.ts (the section's strings only), one changeset; no server change (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default tier (dispatch-gates --tier on AppAskPage.tsx: "no path-derived mandate"), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card (Task)
    Thread-read: 7216616461
    Premise: corrected 7216616461 — item 2 (「全部对话」 opens the drawer) cut against ADR-0057 A4 "No drawer on the page"; items 1 and 3 hold on origin/main e50ab8f: AppAskPage.tsx is on main (PR #37889) and conversations created from it carry metadata.activePackageId.
    Serial constraints cleared: none: overlap-check on a probe branch touching AppAskPage.tsx and useChatConversation.ts exit 0 against origin/main e50ab8fc91; in-flight siblings #37832 (DesignModeMenu*) and #37833 (nav gate) declare other files.
    Pre-claim lane: ui/packages/app-shell/** ⇒ domain:ui (file ownership only); not governed.
    Pre-claim deps: Blocked-by: #37788 closed (PR #37889 merged).
    Prior rulings read: the seat's Premise corrected 7216616461 (Ruling-ref 「做首页,本页隐藏机器人」 via ADR-0057 A4); metadata.activePackageId written by #37788 item 5; no other ruling bounds a client-side filter.
    Fold-or-serial: not folded with #37908 (follow-ups in the same file, p3, after this lands); serial behind nothing.

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

    @objectstack-fleet
    ContributorAuthor

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

    os-dev-report

    {
      "issue": 37790,
      "status": "done",
      "branch": "claude/issue-37790-ask-recent",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37940",
      "head_sha": "b9ae883f",
      "session": "session_016WV4cwGVgec21LwQTtRY85",
      "model": "claude-opus-5-5 (Opus 5.5); effort: medium as dispatched (the harness does not expose the served effort for an independent read)",
      "premise_still_valid": true,
      "summary": "Items 1 and 3 implemented; item 2 stays cut per the seat's Premise corrected (ADR-0057 A4), and nothing on the page opens the drawer. The ai:chat page's home state now renders a Recent conversations section: the caller's newest 50 conversations via the existing useConversationList (GET /conversations?limit=50), filtered by recentAskPageConversations (reuses conversationBelongsToAskPage) to rows whose metadata.activePackageId is this app's package, newest 5 shown with title and timeAgo; empty state when none, nothing drawn while loading or on a list error; a click writes ?c=ID (push) so the page's existing restore path does its one ownership check. ConversationListItem now carries metadata when the row's value is a record. Mechanism assumptions measured: drawer create paths (ChatDockConversation, AiChatPage) pass no createMetadata, so drawer threads carry no activePackageId (confirmed, unchanged); the list-row metadata shape is the spec's AiConversationSchema.metadata record, and a string-valued metadata is NOT JSON-parsed client-side (contract-first) - such a row is simply not listed and a pinned case shows it; the cloud route's actual wire shape is not readable here.",
      "tests": "head b9ae883f. Lock VERDICT command-exit 0: vitest AppAskPage-37788.test.tsx + appAskPageModel.test.ts + ConversationsSidebar.test.tsx + packages/app-shell/src/hooks/ = Test Files 107 passed (107), Tests 986 passed (986) (on 678d33c1; b9ae883f changed only a test-file type annotation and the changeset, re-ran appAskPageModel.test.ts green). Focused verbose run: Tests 27 passed (27), 22 lines naming 37790. type-check: @object-ui/i18n tsc --noEmit + tsconfig.test.json and @object-ui/app-shell tsc --noEmit pass; app-shell tsconfig.test.json first red (TS2353 excess property in my new model case), fixed in b9ae883f, then green (lock VERDICT command-exit 0). Ablation (scripts/ablation-replace.mjs on appAskPageModel.ts, filter predicate mutated to Boolean(row) || ...; source-imported by the suite so no dist leg): mutation landed anchor 1 -> 0, blob 0d1e07df -> 2d933b5d; Tests 4 failed | 23 passed (27): the two model filter cases plus 'lists only this app's page conversations' and 'shows the empty state'; restore blob 0d1e07df == HEAD blob, git diff HEAD empty.",
      "gates": "dispatch-gates --commands (tree 678d33c1, then head b9ae883f): 41 commands; all 41 run locally, every one exit 0 (40 bare-run, pnpm --dir ui exec vitest run scripts/ under the lock: Test Files 172 passed | 2 skipped (174), Tests 5138 passed | 2 skipped, VERDICT command-exit 0). --ran reconciliation: '41 derived, 41 run, 0 NOT-MEASURED, 0 UNRUN' exit 0. Derivation warned STALE TREE: origin/main moved 5 commits touching scripts/check-ci-filter-parity.mjs and scripts/cross-package-test-inputs.mjs (not merged; CI ran on the PR). PR #37940 check-runs on b9ae883f, all completed: Lint & Repo Gates success, TypeScript Type Check success, Test Core success, Governed Surface Queue Guard success, Lint UI success, Type Check UI success, Test UI success (16/16 shards success), Build & E2E UI success, Live E2E UI success, Dogfood Regression Gate success, Check Changeset success, Check PR Size success, PR-body guards success; Build Core / Test Core shards / Dogfood shards skipped by selector.",
      "ci": "all required contexts success on b9ae883f",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "line_budget": "+251 / -3 across 17 files (dispatch-gates: 254 changed lines, under the 3000 human-merge threshold)",
      "files_changed": [
        ".changeset/37790-ask-page-recent-conversations.md",
        "ui/packages/app-shell/src/console/ai/AppAskPage.tsx",
        "ui/packages/app-shell/src/console/ai/appAskPageModel.ts",
        "ui/packages/app-shell/src/hooks/useConversationList.ts",
        "ui/packages/app-shell/src/console/ai/__tests__/AppAskPage-37788.test.tsx",
        "ui/packages/app-shell/src/console/ai/__tests__/appAskPageModel.test.ts",
        "ui/packages/i18n/src/locales/{ar,de,en,es,fr,ja,ko,pt-BR,ru,zh-Hans,zh-Hant}.ts"
      ],
      "deviations": [
        "File surface: the claim named useChatConversation.ts (the type only); its ServerConversation already carries metadata since #37788, so it is untouched. The list row type the home state reads is ConversationListItem in ui/packages/app-shell/src/hooks/useConversationList.ts, outside the declared surface: one optional field plus a record guard in normalize; no server change, list call unchanged.",
        "Test files: the dispatch asked for new test files named for this card; AGENTS.md (ruling record 6583487846) requires a new pin for a component with an existing harness file to go into that file as a top-level describe, so the cases are new top-level describes '(objectstack#37790)' in AppAskPage-37788.test.tsx and appAskPageModel.test.ts. AGENTS.md was followed over the dispatch text.",
        "AGENTS.md MA-discipline 10 full suite before opening the PR was not run locally; CI Test UI (16/16) and Test Core are green on the head instead. origin/main not merged (no conflict, no main-caused red).",
        "Commit trailers are the model-free pair the pre-push hook accepts (Co-authored-by: Claude, Claude-Session), not the harness reminder's model-named Co-Authored-By."
      ],
      "mcp_calls": "0",
      "api_writes": "3 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /repos/objectstack-ai/objectstack/issues/37940/assignees), and this os-dev-report comment via post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/37790/comments); body read-back identical (4139 bytes sent, 4139 stored), assignee os-elon-musk",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: cloud · noted, not filed: the PM premise says list rows hold metadata as a JSON string server-side; the spec (AiConversationSchema.metadata) is a record and this client reads only a record. If the cloud list route returns the column unparsed, the section is always empty: a cloud route contract defect, unmeasured here (cloud not in this container).",
        "carrier: none · noted, not filed: useConversationList backfills previews with up to 20 detail GETs for untitled rows on each mount; the home state now mounts it on each return to home. Observation only."
      ]
    }
  7. removed
    pm:dispatched
    on Nov 27, 2026
  8. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Closed by PR #37940 (merged through the queue). pm:dispatched removed with this note. Follow-up of the PR: #37959. Area o1-D.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:uienhancementpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions