Skip to content

refactor(opencode): suppress hidden subagent updates - #37899

Closed
flowluap wants to merge 1 commit into
anomalyco:devfrom
flowluap:subagent-footer
Closed

refactor(opencode): suppress hidden subagent updates#37899
flowluap wants to merge 1 commit into
anomalyco:devfrom
flowluap:subagent-footer

Conversation

@flowluap

Copy link
Copy Markdown

Issue for this PR

Closes#37896

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Suppresses stream.subagent footer replacements when an event changes only the accumulated detail of an unselected child. The reducer still retains complete history, and selection immediately emits that history. Tabs, completion, cancellation, errors, permissions, questions, blockers, and selected-child detail remain immediate.

A representative 250-delta sequence reduced unselected detail-only snapshots from 251 to 0. This is an event-count result, not an end-to-end timing percentage.

PR #36046 also touches the transport for permission routing but does not implement this suppression, so it may require a small rebase.

How did you verify your code works?

  • focused subagent/transport tests: 38 pass
  • transport suite repeated 10 times: 330 pass
  • package typecheck
  • Prettier and git diff --check
  • independent concurrency and state-transition review

Screenshots / recordings

Not applicable; visible footer state is unchanged.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found.

Note: PR #36046 (show permission prompts from nested subagent chains) appears in results and is mentioned in the PR description as potentially requiring a small rebase, but it's not a duplicate—it's a related PR that touches the transport for permission routing.

@github-actions

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Avoid hidden subagent footer snapshot updates

1 participant

@flowluap