@@ -1603,43 +1603,6 @@ export function Settings({ onClose, onOpenGuide, onOpenMyWeek, initialSection }:
16031603 Controls how new worktrees are created from the sidebar.
16041604 </ p >
16051605
1606- < h3 className = "text-sm font-semibold text-fg-bright mb-3" > PR review prompt</ h3 >
1607- < div className = "bg-panel-raised border border-border rounded-lg p-4 mb-6" >
1608- < p className = "text-xs text-dim mb-2" >
1609- Default kickoff prompt sent to Claude when you open a PR as a worktree (or when the MCP{ ' ' }
1610- < code className = "bg-panel px-1 rounded text-[10px]" > create_worktree</ code > tool is invoked with{ ' ' }
1611- < code className = "bg-panel px-1 rounded text-[10px]" > prNumber</ code > and no explicit prompt). You can
1612- edit the prompt per-PR from the New Worktree screen.
1613- </ p >
1614- < textarea
1615- value = { prReviewPromptDraft }
1616- onChange = { ( e ) => setPrReviewPromptDraft ( e . target . value ) }
1617- rows = { 5 }
1618- spellCheck = { false }
1619- className = "w-full bg-panel border border-border-strong rounded px-3 py-2 text-xs text-fg-bright placeholder-faint outline-none focus:border-fg font-mono resize-y"
1620- />
1621- < div className = "flex items-center gap-2 mt-3" >
1622- < button
1623- onClick = { handleSavePrReviewPrompt }
1624- className = "px-3 py-1.5 bg-surface hover:bg-surface-hover rounded text-sm text-fg-bright transition-colors cursor-pointer"
1625- >
1626- Save
1627- </ button >
1628- < button
1629- onClick = { handleResetPrReviewPrompt }
1630- className = "flex items-center gap-1 px-3 py-1.5 text-sm text-dim hover:text-fg transition-colors cursor-pointer"
1631- >
1632- < RotateCcw size = { 12 } />
1633- Reset to default
1634- </ button >
1635- </ div >
1636- { prReviewPromptSaveResult && (
1637- < div className = { `mt-3 text-xs flex items-center gap-1.5 ${ prReviewPromptSaveResult . ok ? 'text-success' : 'text-danger' } ` } >
1638- { prReviewPromptSaveResult . ok ? < Check size = { 12 } /> : < X size = { 12 } /> } { prReviewPromptSaveResult . message }
1639- </ div >
1640- ) }
1641- </ div >
1642-
16431606 { repoList . length > 0 && (
16441607 < div className = "mb-4" >
16451608 < div className = "flex items-center gap-1 text-[11px] text-faint mb-1.5 uppercase tracking-wide" >
@@ -1920,6 +1883,41 @@ export function Settings({ onClose, onOpenGuide, onOpenMyWeek, initialSection }:
19201883 Share settings.local.json across worktrees
19211884 </ span >
19221885 </ label >
1886+
1887+ < h3 className = "text-sm font-semibold text-fg-bright mt-6 mb-1" > PR review prompt</ h3 >
1888+ < p className = "text-xs text-dim mb-3" >
1889+ Default kickoff prompt sent to Claude when you open a PR as a worktree (or when the MCP{ ' ' }
1890+ < code className = "bg-panel-raised px-1 rounded text-[10px]" > create_worktree</ code > tool is invoked
1891+ with < code className = "bg-panel-raised px-1 rounded text-[10px]" > prNumber</ code > and no explicit
1892+ prompt). You can edit the prompt per-PR from the New Worktree screen.
1893+ </ p >
1894+ < textarea
1895+ value = { prReviewPromptDraft }
1896+ onChange = { ( e ) => setPrReviewPromptDraft ( e . target . value ) }
1897+ rows = { 5 }
1898+ spellCheck = { false }
1899+ className = "w-full bg-panel border border-border-strong rounded px-3 py-2 text-xs text-fg-bright placeholder-faint outline-none focus:border-fg font-mono resize-y"
1900+ />
1901+ < div className = "flex items-center gap-2 mt-3" >
1902+ < button
1903+ onClick = { handleSavePrReviewPrompt }
1904+ className = "px-3 py-1.5 bg-surface hover:bg-surface-hover rounded text-sm text-fg-bright transition-colors cursor-pointer"
1905+ >
1906+ Save
1907+ </ button >
1908+ < button
1909+ onClick = { handleResetPrReviewPrompt }
1910+ className = "flex items-center gap-1 px-3 py-1.5 text-sm text-dim hover:text-fg transition-colors cursor-pointer"
1911+ >
1912+ < RotateCcw size = { 12 } />
1913+ Reset to default
1914+ </ button >
1915+ </ div >
1916+ { prReviewPromptSaveResult && (
1917+ < div className = { `mt-3 text-xs flex items-center gap-1.5 ${ prReviewPromptSaveResult . ok ? 'text-success' : 'text-danger' } ` } >
1918+ { prReviewPromptSaveResult . ok ? < Check size = { 12 } /> : < X size = { 12 } /> } { prReviewPromptSaveResult . message }
1919+ </ div >
1920+ ) }
19231921 </ >
19241922 ) }
19251923
0 commit comments