diff --git a/packages/ui/src/components/session/GitHubIssuePickerDialog.tsx b/packages/ui/src/components/session/GitHubIssuePickerDialog.tsx
index e5a0b07c..3e1bcd2b 100644
--- a/packages/ui/src/components/session/GitHubIssuePickerDialog.tsx
+++ b/packages/ui/src/components/session/GitHubIssuePickerDialog.tsx
@@ -587,7 +587,7 @@ Do not implement changes until I confirm; end with: “Next actions: <1 sentence
Actions
-
+
Create in worktree
- (issue-<number>-<slug>)
+ (issue-<number>-<slug>)
-
- {repoUrl ? (
-
-
-
- Open Repo
-
+
+
+ {repoUrl ? (
+
+
+
+ Open Repo
+
+
+ ) : null}
+
+ Refresh
- ) : null}
-
- Refresh
-
+
diff --git a/packages/ui/src/components/session/GitHubPullRequestPickerDialog.tsx b/packages/ui/src/components/session/GitHubPullRequestPickerDialog.tsx
index 0648f4b6..f18779b5 100644
--- a/packages/ui/src/components/session/GitHubPullRequestPickerDialog.tsx
+++ b/packages/ui/src/components/session/GitHubPullRequestPickerDialog.tsx
@@ -743,84 +743,87 @@ Nice-to-have:
Actions
-
-
setCreateInWorktree((v) => !v)}
- onKeyDown={(e) => {
- if (e.key === ' ' || e.key === 'Enter') {
- e.preventDefault();
- setCreateInWorktree((v) => !v);
- }
- }}
- >
-
{
- e.preventDefault();
- e.stopPropagation();
- setCreateInWorktree((v) => !v);
+
+
+
setCreateInWorktree((v) => !v)}
+ onKeyDown={(e) => {
+ if (e.key === ' ' || e.key === 'Enter') {
+ e.preventDefault();
+ setCreateInWorktree((v) => !v);
+ }
}}
- aria-label="Toggle worktree"
- className="flex h-5 w-5 shrink-0 items-center justify-center rounded text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary"
>
- {createInWorktree ? (
-
- ) : (
-
- )}
-
- Create session in PR worktree
+ {
+ e.preventDefault();
+ e.stopPropagation();
+ setCreateInWorktree((v) => !v);
+ }}
+ aria-label="Toggle worktree"
+ className="flex h-5 w-5 shrink-0 items-center justify-center rounded text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary"
+ >
+ {createInWorktree ? (
+
+ ) : (
+
+ )}
+
+ Create in PR worktree
+
+
+
setIncludeDiff((v) => !v)}
+ onKeyDown={(e) => {
+ if (e.key === ' ' || e.key === 'Enter') {
+ e.preventDefault();
+ setIncludeDiff((v) => !v);
+ }
+ }}
+ >
+ {
+ e.preventDefault();
+ e.stopPropagation();
+ setIncludeDiff((v) => !v);
+ }}
+ aria-label="Toggle diff"
+ className="flex h-5 w-5 shrink-0 items-center justify-center rounded text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary"
+ >
+ {includeDiff ? (
+
+ ) : (
+
+ )}
+
+ Include full diff
+
-
-
setIncludeDiff((v) => !v)}
- onKeyDown={(e) => {
- if (e.key === ' ' || e.key === 'Enter') {
- e.preventDefault();
- setIncludeDiff((v) => !v);
- }
- }}
- >
- {
- e.preventDefault();
- e.stopPropagation();
- setIncludeDiff((v) => !v);
- }}
- aria-label="Toggle diff"
- className="flex h-5 w-5 shrink-0 items-center justify-center rounded text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary"
- >
- {includeDiff ? (
-
- ) : (
-
- )}
-
- Include full diff
-
-
-
- {repoUrl ? (
-
-
-
- Open Repo
-
+
+
+ {repoUrl ? (
+
+
+
+ Open Repo
+
+
+ ) : null}
+
+ Refresh
- ) : null}
-
- Refresh
-
+
diff --git a/packages/ui/src/components/session/SessionSidebar.tsx b/packages/ui/src/components/session/SessionSidebar.tsx
index f721966e..87fe6027 100644
--- a/packages/ui/src/components/session/SessionSidebar.tsx
+++ b/packages/ui/src/components/session/SessionSidebar.tsx
@@ -1800,20 +1800,12 @@ export const SessionSidebar: React.FC
= ({
if (projectKey !== activeProjectId) {
setActiveProject(projectKey);
}
- setActiveMainTab('chat');
- if (mobileVariant) {
- setSessionSwitcherOpen(false);
- }
setIssuePickerOpen(true);
}}
onNewSessionFromGitHubPR={() => {
if (projectKey !== activeProjectId) {
setActiveProject(projectKey);
}
- setActiveMainTab('chat');
- if (mobileVariant) {
- setSessionSwitcherOpen(false);
- }
setPullRequestPickerOpen(true);
}}
onOpenMultiRunLauncher={() => {
@@ -1870,12 +1862,24 @@ export const SessionSidebar: React.FC = ({
{
+ setIssuePickerOpen(open);
+ if (!open && mobileVariant) {
+ setActiveMainTab('chat');
+ setSessionSwitcherOpen(false);
+ }
+ }}
/>
{
+ setPullRequestPickerOpen(open);
+ if (!open && mobileVariant) {
+ setActiveMainTab('chat');
+ setSessionSwitcherOpen(false);
+ }
+ }}
/>
);