From aa8dfb74adb690a092d3ed014ce22f86c0cb997c Mon Sep 17 00:00:00 2001 From: Arjun <6592213+arkml@users.noreply.github.com> Date: Fri, 19 Jun 2026 16:24:29 +0530 Subject: [PATCH] minor ui fixes and default model to claude --- .../src/components/code/code-view.tsx | 77 +++++++++++-------- apps/x/packages/core/src/models/defaults.ts | 2 +- 2 files changed, 46 insertions(+), 33 deletions(-) diff --git a/apps/x/apps/renderer/src/components/code/code-view.tsx b/apps/x/apps/renderer/src/components/code/code-view.tsx index 791086a5..6ccb1986 100644 --- a/apps/x/apps/renderer/src/components/code/code-view.tsx +++ b/apps/x/apps/renderer/src/components/code/code-view.tsx @@ -44,6 +44,11 @@ const POLICY_LABEL: Record = { 'auto-approve-reads': 'Auto-approve reads', yolo: 'Auto-approve everything', } +const POLICY_HEADER_LABEL: Record = { + ask: 'Ask', + 'auto-approve-reads': 'Auto reads', + yolo: 'Auto all', +} export interface ActiveCodeSession { session: CodeSession @@ -180,45 +185,53 @@ export function CodeView({
{selectedSession ? ( <> -
-
+
+
{selectedSession.title}
-
- {AGENT_LABEL[selectedSession.agent]} - · - {selectedSession.cwd} +
+ {AGENT_LABEL[selectedSession.agent]} + · + {selectedSession.cwd} {selectedSession.worktree && !selectedSession.worktree.removedAt && ( - + - {selectedSession.worktree.branch} + {selectedSession.worktree.branch} )}
- - - - - - {(Object.keys(POLICY_LABEL) as ApprovalPolicy[]).map((policy) => ( - void handleUpdateSession({ policy })}> - {POLICY_LABEL[policy]} - {selectedSession.policy === policy && } - - ))} - - - +
+ + + + + + {(Object.keys(POLICY_LABEL) as ApprovalPolicy[]).map((policy) => ( + void handleUpdateSession({ policy })}> + {POLICY_LABEL[policy]} + {selectedSession.policy === policy && } + + ))} + + + +