Skip to content

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

TypeScript

mods/diff: the base picker's labels lose their format characters like every other name drawn

poteat473834136e53
diff --git a/mods/diff/hooks/views/sections/controls-view.tsx b/mods/diff/hooks/views/sections/controls-view.tsx
index 7b1fe027..9a572069 100644
--- a/mods/diff/hooks/views/sections/controls-view.tsx
+++ b/mods/diff/hooks/views/sections/controls-view.tsx
@@ -5,6 +5,7 @@ import type { RenderElement } from 'claude-code'
import PaneState from '../../pane-state'
import type { Kit } from '../kit'
+import Layout from '../layout'
import { present } from './present'
/**
@@ -54,7 +55,7 @@ export function controlsView(
label="base"
options={model.baseModes.map(mode => ({
value: mode,
- label: PaneState.modeLabelOf(mode, model),
+ label: Layout.sanitizeName(PaneState.modeLabelOf(mode, model)),
}))}
value={model.requestedMode}
onSelect={value => kit.actions.chooseBase(value)}