Repository navigation
feat(planning): ask Claude about the whole session from chat - #8408
Conversation
"@claude" as a word in a chat message, or Ask Claude's new pinned "About the whole session", files a request with no question. It runs on the host's Claude only and waits for the owner's Run like any guest request (the owner's own runs at once); a message whose request the throttle or the waiting cap refuses still posts, with requestRefused. Data: a request's qid and a result's qid are optional. General results sit under results.session, a key no question id can take, so old state files load unchanged: no schema bump, no migration. request-run and the digest mark a general request or result with scope: "session" (and from: "chat" when a message asked); the result op accepts no qid when its request is a general one. Once shared, a general result is also Claude's chat message (the host's, marked claude.result), replying to the asking message; reactions and replies to it tell no one and it cannot become a proposal. The Inbox, its toasts and the Run cards say General or "about the session"; the owner shares from Ask Claude on "About the whole session". The chat composer says "Type @claude to send it to Claude." Co-Authored-By: Claude Opus 5.5 <[email protected]>
The owner's own chat "@claude" ran before its message was in chat, so its request-run event lacked from: "chat". The request now records the asking message as an optional `msg` (no schema bump), which the event and Claude's reply read instead of scanning chat, so a trimmed chat does not lose the reply either. A reply to Claude's chat message stores replyTo.claude, so its quote reads Claude's even when the quoted message is outside the page's chat window. With chat off, a shared general answer is not posted to chat; it stays under results.session, and the page says the answer shows in Ask Claude, About the whole session. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A scope: "session" answer is posted to chat for everyone, so the shared lane now says it draws only on what every guest already sees, never hidden comments, unshared results, the owner's terminal conversation or files outside the data dir; and work stays inside the request's scope, not the question's. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed No security findings in the incremental change since 1eb5416 (
I did not need the instruction exception register, because the diff touches no instruction surface. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1eb5416d6b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
claude-review reviewed Incremental review of What changed. Checked by reading the code. I did not run the tests.
Not reported (noted only). |
Opening a shared general answer from the Inbox, or from its asking message's "Sent to Claude" line, goes to Claude's chat message. Once chat no longer keeps that message, GET /api/chat?around= answers 404 and the page only said the message was gone. goMsg now takes an optional fallback in place of that notice, and both places fall back to the answer in Ask Claude, About the whole session. Other callers are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
No related issue: PR 5 of the shared interview question-screen spec (follow-up item 4 from the live dogfood rounds); the spec lives in the owner's local working notes.
Summary
People could only ask Claude about one question at a time. Now "@claude" in the session chat, or "About the whole session" in Ask Claude, makes a general ask that is still owner-gated and answered in the chat.
Fix
qidbecome optional and general results are stored underresults.session; Claude's events carryscope: "session", andlane-shared.mdsays how to answer one.Verification
ui.test.sh: 1042 passed, 0 failed (newui_general.js, 21 checks).align.test.sh: PASS 482/482.interview-defenses.test.sh: 172 pass, 0 fail, no re-pin.check-changelog-fragments.sh --check: all valid.pr-test-windowscovers.Related
🤖 Generated with Claude Code