Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

refactor(terminal): name the two actions Refresh and Restart

enesdc02bf0cbf57
diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsx
index c604e733b..6e7fe4cd8 100644
--- a/src/renderer/canvas/Canvas.tsx
+++ b/src/renderer/canvas/Canvas.tsx
@@ -4060,7 +4060,7 @@ export function Canvas() {
? ([
{ label: 'Markdown view', icon: <IconMarkdown />, onClick: () => toggleMarkdown(ids) },
{
- label: 'Reattach terminal',
+ label: 'Refresh terminal',
icon: <IconReload />,
hint: 'Rebuilds the view and re-attaches to the same session. Nothing running is interrupted.',
onClick: () => reloadTerminals(ids)
@@ -4097,7 +4097,7 @@ export function Canvas() {
undefined
return [
{
- label: 'Restart agent (resume)',
+ label: 'Restart agent',
icon: <IconPower />,
disabled: !!why,
hint: why ?? 'Quits the CLI and relaunches it with --resume (same conversation).',
@@ -4296,7 +4296,7 @@ export function Canvas() {
...(hasRestartableAgents()
? [
{
- label: 'Restart idle agent sessions (resume)',
+ label: 'Restart idle agent sessions',
icon: <IconPower />,
hint: 'Quits each idle agent CLI and relaunches it with --resume.',
onClick: restartIdleAgents
@@ -6077,7 +6077,7 @@ export function Canvas() {
? [
{
id: 'restart-idle-agents',
- label: 'Restart idle agent sessions (resume)',
+ label: 'Restart idle agent sessions',
hint: 'pick up a new model',
icon: <IconPower />,
run: restartIdleAgents
diff --git a/src/renderer/nodes/TerminalNode.tsx b/src/renderer/nodes/TerminalNode.tsx
index 30478e654..b963bd87b 100644
--- a/src/renderer/nodes/TerminalNode.tsx
+++ b/src/renderer/nodes/TerminalNode.tsx
@@ -1833,15 +1833,15 @@ export function TerminalNode({ id, data, selected, parentId }: NodeProps<CanvasN
</button>
</Tooltip>
)}
- {/* Reattach: rebuild THIS node's view and re-attach to the same session (the context
- menu's "Reattach terminal", one click away). In the header because the cases that
+ {/* Refresh: rebuild THIS node's view and re-attach to the same session (the context
+ menu's "Refresh terminal", one click away). In the header because the cases that
need it are exactly the ones where the node is unusable — a pane that never painted,
a scroll that stopped responding after a long sleep — and a right-click on a dead
- view is the last thing a user wants to hunt for. Distinct from "Restart agent
- (resume)", which quits the CLI itself; this touches nothing but the viewer. */}
- <Tooltip label="Reattach — rebuild this view; the session keeps running">
+ view is the last thing a user wants to hunt for. Distinct from "Restart agent",
+ which quits the CLI itself; this touches nothing but the viewer. */}
+ <Tooltip label="Refresh — rebuild this view; the session keeps running">
<button
- className="term-node__reattach nodrag"
+ className="term-node__refresh nodrag"
onClick={(e) => {
e.stopPropagation()
updateNodeData(id, (n) => ({
diff --git a/src/renderer/styles.css b/src/renderer/styles.css
index e9ae07919..8194905f7 100644
--- a/src/renderer/styles.css
+++ b/src/renderer/styles.css
@@ -1327,7 +1327,7 @@ body,
color: #6cb0ff;
}
-.term-node__reattach {
+.term-node__refresh {
background: transparent;
border: none;
color: var(--muted);
@@ -1340,7 +1340,7 @@ body,
align-items: center;
}
-.term-node__reattach:hover {
+.term-node__refresh:hover {
background: rgba(10, 132, 255, 0.18);
color: #6cb0ff;
}