feat: PR widget + comments, branch switcher popover, two-column commi…#24
Merged
feat: PR widget + comments, branch switcher popover, two-column commi…#24
Conversation
…t diff, VS Code/terminal fixes Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
Ships a batch of changelog items + two bug fixes from the UX audit.
Features
"pr"widget, off by default) showing number, state, review decision, checks summary, and diff stats.gh pr view --json commentsandgh api .../pulls/{n}/comments, with per-comment copy and "Copy all".gh pr edit <number> --title ...). Passes the number explicitly so a mid-dialog branch switch can't rename the wrong PR.changes.checkoutnow takesuncommittedStrategy: "abort" | "carry" | "stash"and surfaces a clear error if a stash restore fails.gh pr create --heador gh's preamble).getPrStatusnow back-fillschat.prNumber/chat.prUrlinto the DB so the sidebar can render the badge from cached fields.~/.21st/worktrees/.Bug fixes
open -a "Visual Studio Code"silently failed on brew-only / CLI-only installs because thespawnAsynchelper resolved before the child'serrorevent. NewopenPathInApptries the editor's CLI first (code,cursor,subl, JetBrains launchers…) viaexecWithShellEnvso macOS GUI PATH is honored, awaits thespawnevent, and falls back toopen -aonly when the CLI isn't on PATH. Added anonErrortoast in the Workspace widget.~: the first mount of<Terminal>could race the chat load and sendcwd: undefinedto the main process, which fell back toos.homedir()and cached that session forever. Renderer now skipscreateOrAttachuntilinitialCwd || cwdis truthy; main-side logs a clear warning on any remaining fallback.Test plan
codebinary and retry → toast appears (no silent failure).pwdmatches the worktree path, not~. Switch chats → each terminal starts in its own worktree.git stash.⌥ #<num>before the stats.gh pr create.bun run tsc --noEmit); build clean (bun run build).🤖 Generated with Claude Code