fix: restore subagent footer and fix style guide violations#19491
Merged
Conversation
- Restore SubagentFooter component for subagent session navigation - Fix else statement in dialog-model.tsx (use early return) - Remove unused useSync import from dialog-variant.tsx - Show subagent footer only when session has parentID
Contributor
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
katosun2
pushed a commit
to katosun2/opencode
that referenced
this pull request
Mar 28, 2026
Copilot AI
pushed a commit
to ian-morgan99/opencode
that referenced
this pull request
Mar 28, 2026
…o#19491) Co-authored-by: ian-morgan99 <[email protected]>
e-n-0
pushed a commit
to e-n-0/opencode
that referenced
this pull request
Mar 29, 2026
loocor
pushed a commit
to loocor/opencode
that referenced
this pull request
Mar 30, 2026
afanty2021
pushed a commit
to afanty2021/opencode
that referenced
this pull request
Mar 30, 2026
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
This PR addresses style guide violations found in recent PRs and restores the subagent session footer that was removed in #19486.
Changes
Style Guide Fixes (PR #19488 violations)
elsestatement in favor of early return pattern (AGENTS.md lines 84-97)useSyncimportSubagent Footer Restoration
parentIDWhy
The subagent footer provides important navigation controls when working with subagent sessions (child sessions). Without it, users have to rely solely on keyboard shortcuts to navigate between parent and child sessions.
Testing