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.

fix(confirm): wrap long unbroken tokens instead of scrolling the message sideways

enesf664ec01a2ee
diff --git a/src/renderer/styles.css b/src/renderer/styles.css
index de9dd7f0e..2fdf2ea64 100644
--- a/src/renderer/styles.css
+++ b/src/renderer/styles.css
@@ -3914,6 +3914,13 @@ body,
the newlines and still collapses runs of spaces, exactly as `normal` did — so the messages that
carry no newlines at all are unchanged. */
white-space: pre-line;
+ /* `pre-line` only breaks at whitespace, so one long unbroken token — a URL, an absolute path,
+ a base64 blob, all common in the agent-authored text the canvas-control write approval shows
+ ("Agent X wants to send…") — forced the message area into HORIZONTAL scrolling. Measured in
+ Chrome: a 400-char token overflows at any box width; with this it wraps and the overflow is
+ gone. A dialog whose whole job is "read this, then approve it" must never hide half the text
+ off to the side. */
+ overflow-wrap: anywhere;
}
/* The grant disclosure (`ConsentNotice` → describeGrant) shown ABOVE the SAS body in the host