Repository navigation
Restore agent tabs, add Connect Claude button to Plan pane - #82
Merged
Merged
Conversation
Tabs were filtering on `value > 0` (today's spend), which hid the row whenever only one provider had activity today. The CLI's providers map already contains only providers detected on the system, so showing the map as-is matches user intent: a tab for each installed tool, regardless of today's spend. Tab strip only hides when nothing is detected. This also makes the Plan pill reachable again: it gates on `selectedProvider == .claude`, which required clicking the Claude tab to select.
The Plan pane previously told users to "run claude login in your terminal, then retry" with no way to start the flow from the app. Added a primary Connect Claude button on both the no-credentials and failed states that launches Terminal.app with `claude login`, so the OAuth flow is one click away. TerminalLauncher.openClaudeLogin() uses a hardcoded literal, so no user input reaches AppleScript. Refactored the common path into runInTerminal(command:preValidated:) which re-validates any non- literal input against CodeburnCLI.isSafe as defense-in-depth. On machines without Terminal.app (iTerm/Ghostty/Warp), the button surfaces an inline instruction to run `claude login` manually instead of failing silently.
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
value > 0) hid the whole row whenever one provider had activity today, which also made the Plan pill unreachable (it gates onselectedProvider == .claude).claude loginvia osascript using a hardcoded literal. Machines without Terminal.app see an inline fallback instruction instead of a silent no-op.TerminalLauncher.runInTerminalto re-validate non-literal input againstCodeburnCLI.isSafeas defense in depth, and update the file header to describe the actual invariant.Test plan
swift buildcleanswift test10/10 pass.appviamac/Scripts/package-app.sh, installed to~/Applications/, verified in popover:claude login