fix(tui): show progress indicators while subagent is initializing#8807
Open
Githubguy132010 wants to merge 3 commits intoKilo-Org:mainfrom
Open
fix(tui): show progress indicators while subagent is initializing#8807Githubguy132010 wants to merge 3 commits intoKilo-Org:mainfrom
Githubguy132010 wants to merge 3 commits intoKilo-Org:mainfrom
Conversation
Show '↳ Starting...' in the parent session's Task entry when the subagent is running but has not yet made any tool calls, and show '↳ Initializing...' in the subagent session view when it has no messages yet. Prevents the UI from appearing frozen during the LLM thinking phase on startup. Closes Kilo-Org#8422 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (4 files)
Reviewed by gpt-5.4-20260305 · 1,049,884 tokens |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2d0b5e63fc
ℹ️ 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".
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Mirror the TUI fix for the VS Code extension webview: - TaskToolExpanded: show "Starting..." when the task tool is running but the child session has no tool calls yet (previously the expanded body was empty/blank). - MessageList/ChatView: propagate the readonly flag so the subagent viewer shows "Initializing..." instead of the generic welcome screen when the session has no messages yet. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Context
Fixes #8422. Subagents can take over a minute to show any activity during startup, making the UI look frozen. There were two places where users got no feedback:
Implementation
Two minimal additions to
packages/opencode/src/cli/cmd/tui/routes/session/index.tsx:Task component
contentmemo — added anelsebranch for the empty-tools running state. WhenisRunning()is true buttools().length === 0, the display now includes↳ Starting...instead of nothing:Once the first tool call arrives this transitions naturally to the existing
↳ Tool titledisplay.Subagent session view — added a
<Show when={session()?.parentID && messages().length === 0}>block that renders↳ Initializing...before the message list. This replaces the blank screen a user would see when navigating to a freshly-created subagent session. It disappears automatically as soon as the first message arrives (reactive update viamessages()).No backend changes needed — the gap is inherent to LLM response time. The web UI already shows a TextShimmer animation on the task title, which provides sufficient feedback there.
Screenshots
↳ Starting...; subagent session shows↳ Initializing...How to Test
@general-purpose summarize this repo).↳ Starting...once the task is running, before any tool calls appear.↳ Initializing...instead of a blank screen.Get in Touch