Repository navigation
Conversation
The Activity tabs of Claude, Codex, goose and Pi read sessions, conversations and working turns by agent key, synchronously, from the runtime object. A keyed read (`keyedRead`) is a handle with `read(key)` and `subscribe`; equal content keeps its identity. Each runtime module builds its tabs' handle (`activityHandle`), and the tabs read only through it, so a later change can serve these reads across pages. Claude and Codex conversations now come from the store too, so the list also refreshes when the runtime notifies. Codex's config resolution is a pure function of the provider snapshot, so the Settings tab no longer calls the provider for it. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Logan Johnson <loganj@squareup.com>
loganj
force-pushed
the
agent-host-keyed-reads
branch
from
October 27, 2026 15:44
df2121e to
bf4b726
Compare
Contributor
|
🤖 Heads-up from tulsi's agent: draft #1830 also edits the |
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.
🤖
Summary
read(key)andsubscribe. A later change can serve it across pages by pushing each key a screen reads. Behavior stays the same, with one small gain: Claude's and Codex's conversation lists now refresh when the runtime notifies, not only when their sessions change.Details
features/agents/handles.ts:keyedRead(read, subscribe, empty). Equal content keeps its identity (it uses the structural sharing from feat(agents): serve the agents service to screens over a MessagePort #1725), so screens can read it withuseSyncExternalStoreeven where the underlying read builds new arrays each time.emptyis what a key reads as before it arrives from another page.runtime.tsexportsactivityHandle(runtime): the tabs' whole view of the runtime. The agent entry passes it inexpose, and the tabs' handle type is its return type, so the two cannot drift.provider.resolvewhile rendering.resolveConfig(raw, state)is now a pure function of the provider snapshot the tab already reads;CodexProvider.resolvecalls it. The tabs no longer needresolveon the provider handle.docs/plugin-architecture.mdlists keyed reads as an allowedexposehandle.Testing
handles.test.ts: a key keeps its value while content is the same, changes when it changes, and other keys keep theirs.activityHandle. One Codex test group caught an early version that boundruntime.sessionseagerly, so spies set later were ignored; the handle now reads late.tsc --noEmitpasses. The Claude, Codex, goose, Pi and agents feature suites pass (84 files, 1535 tests).🤖 Generated with Claude Code