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 branch 'feat/mobile-ios-android' of https://github.com/autonomous-ai/autonomous-harness into feat/mobile-ios-android

Dev jacobf2f01890d447
diff --cc desktop/lib/widgets/terminal_panel.dart
index 97789f9f2,8aef35d1d..dda20abde
--- a/desktop/lib/widgets/terminal_panel.dart
+++ b/desktop/lib/widgets/terminal_panel.dart
@@@ -325,32 -326,6 +326,25 @@@ class _TerminalPanelState extends State
void _onSessionChanged() {
if (!mounted) return;
_syncCursorBlink();
- if (_stickToEnd) {
++ // A pane can open BEFORE its screen exists: over the relay it mounts empty
++ // and the retained scrollback is replayed a moment later, so the jump in
++ // `_afterTerminalMounted` lands on nothing and the screen then fills in
++ // above the reader. xterm does not close this — its own `_scrollToBottom`
++ // answers typing and the keyboard opening, never new output.
++ //
++ // Gated on [_followTail], which is just "the view is showing its end", so
++ // this pins a pane that is already there and leaves alone one the reader
++ // has scrolled up in — including a pane restored to a saved position,
++ // which is not at the end and so is never followed.
++ if (_followTail) {
+ WidgetsBinding.instance.addPostFrameCallback((_) {
- if (!mounted || !_stickToEnd || !_scrollController.hasClients) return;
++ if (!mounted || !_followTail || !_scrollController.hasClients) return;
+ final position = _scrollController.position;
+ if (position.pixels != position.maxScrollExtent) {
+ position.jumpTo(position.maxScrollExtent);
+ }
- // The screen has arrived: there is more of it than fits, and it is now
- // showing its end. Following past this point would fight the reader
- // over every later line.
- if (position.maxScrollExtent > 0) _stickToEnd = false;
+ });
+ }
if (!_composerFocusPending) return;
if (!widget.focused || !_showsComposer) {
_composerFocusPending = false;