feat: workspace-wide console inbox — GET /inbox?all=1 + CLI inbox --all/--peek#190
Open
ivanmkc wants to merge 1 commit into
Open
feat: workspace-wide console inbox — GET /inbox?all=1 + CLI inbox --all/--peek#190ivanmkc wants to merge 1 commit into
ivanmkc wants to merge 1 commit into
Conversation
…ll/--peek Watching the human->agent console for a whole workspace required enumerating every scope and polling each one (N+1 calls per cycle). Add one aggregated read and expose non-consuming scans in the CLI: - viewer: GET /inbox?all=1 returns unread across every scope in the workspace, each with its unread events. Peek-only — never advances an ack (you can't sensibly consume many scopes at once); the agent then does a normal per-scope read to consume + act. InboxStore.unreadByScope() backs it. - cli: inbox --all (no --project/--agent) prints the aggregate; inbox --peek reads a single scope without advancing the ack. Tests: unreadByScope (peek semantics, ack isolation), GET /inbox?all=1 (aggregate + empty), CLI --all/--peek/--json. Full suite green; verified end-to-end against a live viewer.
baa6ade to
19a4b5d
Compare
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.
Watching the human→agent console for a whole workspace meant enumerating every scope and polling each one — N+1 calls per cycle. This adds one aggregated read and exposes non-consuming scans in the CLI.
Viewer
GET /inbox?all=1— unread across every scope in the workspace, each with its unread events. Peek-only: never advances an ack (you can't sensibly consume many scopes in one read), so the agent does a normal per-scope read to consume + act. Backed byInboxStore.unreadByScope().CLI
inbox --all— print the aggregate (no--project/--agentneeded).inbox --peek— read a single scope without advancing the ack.Tests —
unreadByScope(peek semantics, ack isolation, partial-read),GET /inbox?all=1(aggregate + empty), CLI--all/--peek/--json. Full suite green; also verified end-to-end against a live viewer.