feat(desktop): show Agent Graph output previews - #4751
Open
testikun wants to merge 4 commits into
Open
Conversation
testikun
force-pushed
the
codex/issue-3714-agent-graph-v2
branch
from
September 4, 2026 09:04
e0010b0 to
ff866d7
Compare
Project bounded child output and usage-derived throughput from existing RuntimeEvent facts into the Agent Graph read model, then render streaming and completed previews without changing graph execution semantics. Generated-by: OpenAI Codex
Replace the obsolete no-delta-write assertion with bounded streaming projection and one-invalidation-per-commit coverage. Generated-by: OpenAI Codex
testikun
force-pushed
the
codex/issue-3714-agent-graph-v2
branch
from
September 5, 2026 02:06
ff866d7 to
156bc6d
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.
Summary
Fixes #3714
Verification
node --test packages/runtime/dist/__tests__/stream-graph-projection.test.js packages/runtime/dist/__tests__/stream-graph-read-model.test.js packages/runtime-host/dist/__tests__/agent-graph-protocol.test.js packages/runtime-host/dist/__tests__/agent-graph-coordinator.test.js apps/desktop/dist/main/__tests__/agent-graph-panel.test.js— 45 passednode --test --test-name-pattern="boots an empty graph" packages/runtime/dist/__tests__/stream-graph-coordinator.test.js— the CI regression passes with bounded output-commit and exact invalidation coveragenpm --workspace @maka/runtime run test:dist— 3,224 tests; 3,211 passed, 13 skipped, 0 failednpm run typecheck— passed; affected Runtime, Runtime Host, and Desktop typechecks also passed after rebasing onto currentmainnpm run lint— passednpm run format:check— passednpm --workspace @maka/desktop run build:with-deps— passed after the final rebasenpm --workspace @maka/desktop run check:architecture— 71 passed; renderer architecture check passed against the final basenpx knip --workspace apps/desktopandnpx knip --workspace packages/ui— passednpm --workspace @maka/desktop run build-storybook— passednode scripts/protocol-epoch-check.mjs --staged— passed (109 -> 110)Real-window verification: built and launched current head
ff866d713in a visible local Electron App, opened the production Agent Graph panel through the repository's persisted Host projection, and verified streaming/completed output previews, measured TPS, the 24-operator scroll layout, collapse behavior, and retained Open child task actions.Real App screenshot
This is a direct capture from the locally built and running Maka Electron App after the test above; it is not a Storybook render, mockup, or generated image.
Review focus
RuntimeEvents remain the only output/usage authority. The new projection is presentation-only and bounded before it reaches the wire; it does not create graph activity records for text deltas or participate in supervisor replay.
AI use
Select exactly one:
Tool(s) and scope: OpenAI Codex implemented the bounded Runtime/read-model projection, strict protocol plumbing, Desktop rendering, deterministic tests, Storybook fixture, and verification. The material commit carries the required
Generated-by: OpenAI Codextrailer.Checklist
Does this PR entail a change in behavior?