Skip to content

fix(tui): hide background hint for async work - #37088

Open
495696116 wants to merge 1 commit into
anomalyco:v2from
495696116:background-hint
Open

fix(tui): hide background hint for async work#37088
495696116 wants to merge 1 commit into
anomalyco:v2from
495696116:background-hint

Conversation

@495696116

@495696116 495696116 commented Jul 15, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #36940

Type of change

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

What does this PR do?

Hides the Ctrl+B backgrounding hint when every running shell or subagent was launched with background: true. The hint remains visible when at least one foreground shell or subagent can still be moved to the background.

The refreshed implementation keeps the current v2 delayed-presence behavior and canonical tool-name matching. Focused coverage includes foreground-only, background-only, mixed, and unrelated running tools.

How did you verify your code works?

  • cd packages/tui && bun test --timeout 30000 --only-failures — 631 pass, 5 skip
  • cd packages/tui && bun run typecheck
  • bun run typecheck — 33/33 package tasks passed
  • bun run lint packages/tui/src/routes/session/index.tsx packages/tui/test/cli/tui/background-tool-hint.test.ts — 0 errors

Screenshots / recordings

Not included: this only suppresses an inapplicable hint; it does not change the hint styling or layout.

Checklist

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

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@495696116

Copy link
Copy Markdown
Author

Closes #36940 is present in the required issue section. This PR targets v2 because BackgroundToolHint does not exist in this form on dev; GitHub therefore leaves closingIssuesReferences empty for the non-default base branch, which triggers needs:issue. Could a maintainer confirm the v2 target and clear the label?

@495696116

Copy link
Copy Markdown
Author

Following up once now that #37306 has merged: that PR explicitly leaves async-only hint suppression to #37088, and the current v2 branch still shows BackgroundToolHint for any running shell/subagent without excluding input.background === true. The issue is labeled 2.0, this branch remains mergeable with v2, and the focused regressions cover foreground-only, background-only, mixed, and unrelated running tools.

The needs:issue label also appears to be a workflow false positive: the PR description contains Closes #36940, but GitHub leaves closingIssuesReferences empty for this non-default v2 base, while pr-standards.yml relies on that field. Could a maintainer please review the v2 scope and remove the label?

Sign up for free to 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.

1 participant