Skip to content

Indent collab subagents in sidebar#85

Merged
Dimillian merged 5 commits intomainfrom
codex/implement-indented-sub-agent-display-in-sidebar
Jan 18, 2026
Merged

Indent collab subagents in sidebar#85
Dimillian merged 5 commits intomainfrom
codex/implement-indented-sub-agent-display-in-sidebar

Conversation

@Dimillian
Copy link
Owner

Motivation

  • Make multi-agent (collab) runs easier to scan by showing sub-agents spawned by an agent nested under their parent in the sidebar.
  • The app-server events do not include an explicit parent/child thread graph, so infer relationships from collab tool-call fields (senderThreadId, receiverThreadId(s), newThreadId).

Description

  • Track inferred parent/child relationships by adding threadParentById to the threads reducer and a setThreadParent action.
  • Parse collabToolCall / collabAgentToolCall items in useThreads to extract sender/receiver/new thread ids and dispatch setThreadParent for child threads, and apply these links when resuming or processing thread items.
  • Sidebar now builds a parent/child tree per workspace, flattens it into ordered rows with a depth value, and renders rows with indentation by setting a CSS custom property on the thread row element.
  • Updated layout plumbing to pass threadParentById from useThreads through useLayoutNodes into Sidebar, added a small TypeScript cast to allow CSS custom property usage, and adjusted sidebar CSS to use calc(6px + var(--thread-indent, 0px)) for left padding.

Testing

  • Ran npm run lint; linter executed but emitted a TypeScript version warning from @typescript-eslint (warning only, not a failure).
  • Ran npm run typecheck (tsc --noEmit); type checking completed successfully.
  • Launched the dev server (npm run dev) and captured a UI screenshot to validate nested thread indentation visually.

Codex Task

@Dimillian
Copy link
Owner Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ca18d36ff6

ℹ️ 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".

@Dimillian
Copy link
Owner Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 004b1ac0f3

ℹ️ 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".

@Dimillian Dimillian merged commit 5aa32b9 into main Jan 18, 2026
2 checks passed
gersmann pushed a commit to gersmann/codex-monitor-web that referenced this pull request Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant