Add PR companion web view#88
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7937b76fbd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| self.companionContainer?.show(tool: .pullRequest) | ||
| self.companionToolState.activeTool = .pullRequest | ||
| self.companionToolState.presentation = .docked | ||
| self.rootSplitVC?.updateCompanionPane(state: self.companionToolState) |
There was a problem hiding this comment.
Revalidate PR context before applying async fetch result
After await manager.fetchCurrentPullRequestURL() returns, this block unconditionally switches the companion pane to PR and overwrites companionToolState. If the user changes selection or opens another companion tool while gh pr view is still running, the stale task result can reopen/replace the current pane with an out-of-date PR. Gate these assignments on current intent (e.g., still targeting PR for the same selected worktree) before mutating UI state.
Useful? React with 👍 / 👎.
Summary
gh pr viewand open the DiffsHub URLVerification