The terminal session id lived only in memory, so the first time the panel
opened after a launch it always created another PTY. The old shell stayed on
the server (unattached shells live for half an hour) but the client could no
longer find it.
The id is now remembered per connection and directory. On first open the
panel lists /api/terminal/sessions?cwd=<dir> and attaches to the remembered
session while the server still has it, showing its replayed history. Without
that id it adopts the newest running session of the directory, and only when
the directory has nothing does it create one. An explicit "close terminal"
forgets the id and forces a fresh shell, and a fatal SESSION_NOT_FOUND clears
it and recovers, so a server restart cannot leave a dead panel.
The panel is still one terminal per project, not a tab strip.
0.4.2 (402).
- The panel's top row is now the tab group plus the close button; each tab
keeps its own header: the files tab has the breadcrumb with new/more (or
the name and edit/download while previewing), knowledge its search and
refresh, the terminal its status.
- The key bar is Termux's two rows of seven: ESC / — HOME ↑ END PGUP, then
TAB CTRL ALT ← ↓ → PGDN; the modifiers still apply to what the phone
keyboard types.
- The panel is a dialog, so it gives the IME's height back itself
(viewInsets.bottom). The key bar and the terminal stay above the
keyboard, and the PTY reflows to the smaller terminal.
- Project knowledge gains the memory tab: both scopes from
/api/agent-memory/all, absent when the server has memory switched off,
with type, edit and delete.
- File preview editing passes minLines: null alongside expands.
- 0.3.12 (312).
- lib/api/terminal.dart: the PTY protocol (create/resize/restart/close, and
the /api/terminal/ws binary control frames) with a reconnecting socket
that replays the server snapshot at the size it was drawn for.
- lib/terminal_state.dart: an xterm model plus that socket, kept per
workspace on AppState, so closing the panel or switching tabs keeps the
shell; the app reattaches when it returns from the background.
- lib/screens/terminal_panel.dart: TerminalView, a status bar (keyboard,
restart, clear, close) and a Termux-style key bar whose CTRL/ALT/SHIFT
modifiers also apply to what the phone keyboard types.
- lib/screens/knowledge_panel.dart: notes, todos and plans from
/api/project-context, searchable, with a full page for a plan's Markdown
and its raw editor.
- Downloads stream with a progress dialog (bytes, total, percent) and a
cancel that aborts the request; the save dialog only opens on success.
The request asks for `accept-encoding: identity` so Content-Length exists.
- MarkdownView renders task lists as ✅/⬜ instead of material_ui's
Checkbox, which wants a material_ui Material ancestor the app lacks.
- Dialogs own their TextEditingControllers, so closing one no longer
trips a framework assertion in debug builds.
- 0.3.11 (311).