Repository navigation
fix(tui): autoaccept permissions across open session tabs - #64887
cdimartino wants to merge 1 commit into
Conversation
|
verify |
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
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 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. |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Issue for this PR
Closes #44007. Also addresses the background-tab behavior reported in #63527.
Type of change
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