Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

Merge remote-tracking branch 'origin/main' into feat/web

Dev jacobaa58e45e6faa
diff --cc desktop/lib/widgets/terminal_panel.dart
index a0c2a7bc7,16b815ff3..76e495aac
--- a/desktop/lib/widgets/terminal_panel.dart
+++ b/desktop/lib/widgets/terminal_panel.dart
@@@ -2147,44 -2205,59 +2213,60 @@@ class _TerminalPanelState extends State
message: _hoveredLink == null
? ''
: '${defaultTargetPlatform == TargetPlatform.macOS ? '⌘' : 'Ctrl'}-click to open\n$_hoveredLink',
- child: TerminalView(
- session.terminal,
- key: _terminalViewKey,
- controller: _controller,
- autoResize: widget.visible && !session.readOnly,
- resizeBuffer: false,
- renderingEnabled: widget.visible,
- outputRepaintInterval: widget.outputRepaintInterval,
- scrollController: _scrollController,
- focusNode: _focusNode,
- autofocus: widget.focused && !showComposer,
- readOnly: widget.readOnly || !session.acceptsInput,
- theme: terminalScreenThemeFor(
- grid.AppTheme.palette.value,
- terminalThemeStore.value,
+ positionDelegate: _linkTooltipPosition,
+ child: CustomPaint(
+ key: _linkUnderlineKey,
+ foregroundPainter: _LinkUnderlinePainter(
+ spans: _hoveredLinkSpans,
+ source: session.terminal,
+ terminal: _laidOutTerminalView,
+ host: () =>
+ _linkUnderlineKey.currentContext
+ ?.findRenderObject()
+ as RenderBox?,
+ repaint: _scrollController,
+ ),
+ child: TerminalView(
+ session.terminal,
+ key: _terminalViewKey,
+ controller: _controller,
+ autoResize: widget.visible && !session.readOnly,
+ resizeBuffer: false,
+ renderingEnabled: widget.visible,
+ outputRepaintInterval:
+ widget.outputRepaintInterval,
+ scrollController: _scrollController,
+ focusNode: _focusNode,
+ autofocus: widget.focused && !showComposer,
+ readOnly:
+ widget.readOnly || !session.acceptsInput,
+ theme: terminalScreenThemeFor(
+ grid.AppTheme.palette.value,
+ terminalThemeStore.value,
+ ),
+ padding: const EdgeInsets.all(10),
+ textStyle: terminalFontStore.value,
+ // The chosen point size already sizes each terminal cell.
+ // Applying the OS text scale again would change rows/cols
+ // and resize the remote terminal unexpectedly.
+ textScaler: TextScaler.noScaling,
+ onKeyEvent: _onTerminalKey,
+ onTapDown: _onLinkTapDown,
+ onTapUp: _onLinkTapUp,
+ mouseCursor:
+ _hoveredLink != null && _linkModifierPressed
+ ? SystemMouseCursors.click
+ // An I-beam invites typing; a blocked pane does not.
+ : _inputBlocked
+ ? SystemMouseCursors.basic
+ : SystemMouseCursors.text,
+ onSecondaryTapDown: (_, _) => _copyOrPaste(),
++ deleteDetection: isTouchBrowser,
+
+ onAltBufferScroll: session.scrollViaTmuxCopyMode
+ ? (up) => session.sendScrollCommand(up, 1)
+ : null,
),
- padding: const EdgeInsets.all(10),
- textStyle: terminalFontStore.value,
- // The chosen point size already sizes each terminal cell.
- // Applying the OS text scale again would change rows/cols
- // and resize the remote terminal unexpectedly.
- textScaler: TextScaler.noScaling,
- onKeyEvent: _onTerminalKey,
- onTapDown: _onLinkTapDown,
- onTapUp: _onLinkTapUp,
- mouseCursor:
- _hoveredLink != null && _linkModifierPressed
- ? SystemMouseCursors.click
- // An I-beam invites typing; a blocked pane does not.
- : _inputBlocked
- ? SystemMouseCursors.basic
- : SystemMouseCursors.text,
- onSecondaryTapDown: (_, _) => _copyOrPaste(),
- deleteDetection: isTouchBrowser,
-
- onAltBufferScroll: session.scrollViaTmuxCopyMode
- ? (up) => session.sendScrollCommand(up, 1)
- : null,
),
),
),