Skip to content

fix(tui): autoaccept permissions across open session tabs - #64887

Closed
cdimartino wants to merge 1 commit into
anomalyco:devfrom
cdimartino:background-permissions
Closed

cdimartino wants to merge 1 commit into
anomalyco:devfrom
cdimartino:background-permissions

Conversation

@cdimartino

@cdimartino cdimartino commented Nov 19, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #44007. Also addresses the background-tab behavior reported in #63527.

Type of change

  • Bug fix

What does this PR do?

Move permission replies from the displayed Session frame to the App lifetime. In autoaccept mode, cover open session tabs and their descendants, and hydrate pending permissions after startup/reconnect. Ignore expected missing-location errors for historical children while retaining bounded retries for other failures.

Normal permission mode is unchanged. This fixes existing autoaccept behavior; no new feature flag. Independent of the archive-visibility PR.

How did you verify your code works?

Based on dev at 0a297bf. Bun 1.4.4: 113 tests passed across session-autoaccept, app-lifecycle, session-tabs-model and session-tabs; TUI typecheck:tsc passed. Regression cases cover background tabs, nested requests, reconnect hydration and missing locations.

Root bun run check is blocked by ast-grep requiring GLIBC 2.32/2.33/2.34 unavailable on this host; it is not a passing full check.

Screenshots / recordings

No layout changes; existing permission UI is unchanged.

Checklist

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

@cdimartino

Copy link
Copy Markdown
Author

verify

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels Nov 19, 2026
@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.

@opencodejr opencodejr Bot closed this Nov 19, 2026
@opencodejr

opencodejr Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Thanks for digging into this and for the thorough tests!

I think this duplicates #62043, which fixes #44007 the same way: it moves the autoaccept reply out of the session view into App, covers open tabs and their child sessions, and reloads pending permissions after a reconnect.

Your version adds a few useful things on top: it also loads child sessions during that reload, retries failed loads, and doesn't show an error for old child sessions whose folder is gone. If you think #62043 needs those, please suggest them there, or help by reviewing and testing it.

@github-actions github-actions Bot removed needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels Nov 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TUI --auto stalls background tabs at permission requests

1 participant