mirror of
https://github.com/stablyai/orca.git
synced 2026-10-12 08:02:37 +00:00
fix(resource-usage): friendly label in kill-confirm dialog
The kill-confirm dialog showed the raw session ID (uuid@@worktreeId@@absolute-path), which overflowed the dialog because UUIDs/paths have no break points and isn't actionable for the user anyway — they don't recognize their terminals by GUID. Use session.label (e.g. "Terminal 2") and put it directly in the dialog title so the body copy stays short and readable: "Kill Terminal 2? Force-quits this terminal. Any unsaved work in the pane is lost." Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -1253,11 +1253,16 @@ export function ResourceUsageStatusSegment({
|
||||
}}
|
||||
>
|
||||
<DialogHeader>
|
||||
<DialogTitle className="text-sm">Kill this session?</DialogTitle>
|
||||
<DialogTitle className="text-sm">
|
||||
Kill{' '}
|
||||
<span className="font-medium text-foreground">
|
||||
{killConfirm?.label ?? 'this session'}
|
||||
</span>
|
||||
?
|
||||
</DialogTitle>
|
||||
<DialogDescription className="text-xs">
|
||||
Force-quits{' '}
|
||||
<span className="font-medium text-foreground">{killConfirm?.sessionId}</span>. Any
|
||||
unsaved work in that pane is lost. This can't be undone.
|
||||
Force-quits this terminal. Any unsaved work in the pane is lost. This can't be
|
||||
undone.
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<DialogFooter>
|
||||
|
||||
Reference in New Issue
Block a user