Skip to content

Add Codex subagent management bar - #211

Merged
yongkangc merged 9 commits into
cfal:mainfrom
0xSolarPunk:feat/codex-subagent-panel
Jun 25, 2026
Merged

Add Codex subagent management bar#211
yongkangc merged 9 commits into
cfal:mainfrom
0xSolarPunk:feat/codex-subagent-panel

Conversation

@0xSolarPunk

@0xSolarPunk 0xSolarPunk commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Focused follow-up to the merged Codex subagent tool-rendering work (#210), adding a read-only subagent management surface derived from the existing transcript.

What changed

  • Adds a derived Codex subagent management model from existing transcript messages.
  • Adds a compact Agents control above the chat feed that collapses to a single trigger (count + aggregate status dot) and opens a popover listing the root and each subagent with status, model, and path. Keeps the surface read-only.
  • Adds stable input anchors on tool cards so each subagent row can jump back to its originating event.
  • Skips non-agent list operations and applies multi-target lifecycle actions to the targeted subagents instead of creating fake entries.
  • Adds focused model/component/rendering tests.

Screenshots

Desktop:

Codex subagent management desktop

Mobile:

Codex subagent management mobile

Validation

  • bun run --cwd web test -- src/lib/chat/__tests__/subagent-management.test.ts src/lib/components/chat/__tests__/SubagentManagementBar.test.ts src/lib/components/chat/tools/__tests__/ChatToolEventRenderer.test.ts -> 26 passed
  • bun run --cwd web test -> 1373 passed
  • bun run check -> passed
  • Separate dogfood server: GARCON_HTTP_COMPRESSION=false bun run start --port 0 --disable-auth --config-dir /tmp/garcon-review-dogfood-fixture -> rebuilt, started on an OS-assigned port, and verified the popover desktop/mobile (root + 2 agents in Waiting state, no fake list_agents/multi-target entries, jump-to-origin from each row)

Known inherited local failure:

  • The full bun run test server suite fails locally in server/lib/__tests__/http-compression.test.js because this Bun environment lacks CompressionStream; GitHub checks are green.

@0xSolarPunk
0xSolarPunk force-pushed the feat/codex-subagent-panel branch from 4150fea to 00d7ae5 Compare June 23, 2026 05:49
@0xSolarPunk

Copy link
Copy Markdown
Contributor Author

Review/fix + dogfood pass completed. No existing review comments were present. Fixed a real edge case in commit 00d7ae5: list_agents and multi-target lifecycle events no longer create fake management chips. Validation: focused tests -> 25 passed, bun run check passed, separate rebuilt dogfood server passed desktop/mobile Playwright checks for root+2 agents, no fake chips, and chip jump-to-origin. Full local bun run test still hits the inherited CompressionStream is not defined server-compression environment failure; GitHub checks are green.

Merge current origin/main into feat/codex-subagent-panel and resolve the renderer test conflict.

Keep namespaced app dynamic tools external, avoid hidden tool DOM wrappers, count only subagents in the management bar, and support Bun runtimes without Web CompressionStream during compression validation.
@yongkangc
yongkangc marked this pull request as ready for review June 24, 2026 02:49
yongkangc and others added 4 commits June 24, 2026 10:49
# Conflicts:
#	server/lib/__tests__/http-compression.test.js
#	server/lib/__tests__/http-route.test.js
#	server/lib/http-compression.ts
#	web/src/lib/components/chat/ConversationWorkspace.svelte
Replaces the always-expanded subagent chip strip with a compact
"Agents" trigger that opens a popover listing root and subagents.
Removes the toolbar collision and per-chip truncation, surfaces an
aggregate status dot on the collapsed trigger, and keeps jump-to-origin
on each subagent row. Updates screenshots and component tests.
@yongkangc
yongkangc enabled auto-merge (squash) June 25, 2026 11:29
@yongkangc
yongkangc merged commit 226d4d5 into cfal:main Jun 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants