diff --git a/BACKLOG.md b/BACKLOG.md index 3055a52d..eadc5a16 100644 --- a/BACKLOG.md +++ b/BACKLOG.md @@ -60,3 +60,5 @@ This is the git-tracked backlog for this workstream. Keep local next steps here; - [ ] Window-strip arrow-key navigation dispatches live select_window per keypress (valid ARIA auto-activation but can burst commands) — consider focus-only + Enter-to-activate (Wave-5 review INFO). - [ ] Commit a refreshed docs-site screenshot of the Command Center (acceptance checklist residual NOT-MET). - [ ] Wave-6 batch-2 review LOWs: prune command-mark seenRef on marker disposal; 4px selection-handle offset; double-tap vs touch-scroll listener ordering; thumbnail "live capture" wording; scroll-freeze anchor drift at 10k scrollback saturation; heuristic ❯/› prompt-glyph tuning; stuck suppressClickRef edge (touch tap then BT-keyboard click). +- [deps] Dependabot #39 (medium): uuid < 11.1.1 buffer bounds check in v3/v5/v6-with-buf — we only use v4(); bump uuid across lockfile at next dep pass. (2026-07-21) +- [tests] Journey suite stabilization pass: attach/type input race + launch-sheet fill timeout flake under parallel load (both pass 10/10 isolated; ~3-7% flake in full parallel runs). Consider per-test WS-connected wait helper + launch sheet readiness gate. (2026-07-21) diff --git a/apps/dashboard/src/components/TerminalView.tsx b/apps/dashboard/src/components/TerminalView.tsx index b8568c55..38a90e13 100644 --- a/apps/dashboard/src/components/TerminalView.tsx +++ b/apps/dashboard/src/components/TerminalView.tsx @@ -24,6 +24,7 @@ import { useSettingsStore } from '@/stores/settings'; interface TerminalViewProps { sessionId: string; + historySessionId?: string; hostId?: string; paneId?: string; className?: string; @@ -39,6 +40,7 @@ export type { TerminalController } from '@/components/terminal/types'; export function TerminalView({ sessionId, + historySessionId = sessionId, hostId, paneId, className, @@ -206,6 +208,7 @@ export function TerminalView({ onOutputStart: handleOutputStart, onOutputWritten: handleTerminalOutputWritten, }); + const terminalWritable = status === 'connected' && !readOnly; controllerReadOnlyRef.current = readOnly; const dispatchStickyCtrl = useCallback((event: StickyCtrlEvent) => { const nextMode = reduceStickyCtrl(stickyCtrlModeRef.current, event); @@ -234,8 +237,10 @@ export function TerminalView({ terminalRef, fontSize: terminalFontSize, onFontSizeChange: setTerminalFontSize, - cursorEnabled: status === 'connected' && !readOnly, + cursorEnabled: terminalWritable, onCursorInput: sendInput, + writable: terminalWritable, + onScrollInput: sendInput, onHorizontalSwipe: (direction) => { termRef.current?.dispatchEvent(new CustomEvent('terminal-window-swipe', { bubbles: true, @@ -380,7 +385,7 @@ export function TerminalView({ search={searchControls} /> setHistoryOpen(false)} /> diff --git a/apps/dashboard/src/components/terminal/PersistentTerminalHost.tsx b/apps/dashboard/src/components/terminal/PersistentTerminalHost.tsx index ed9360ac..c9075ad0 100644 --- a/apps/dashboard/src/components/terminal/PersistentTerminalHost.tsx +++ b/apps/dashboard/src/components/terminal/PersistentTerminalHost.tsx @@ -97,6 +97,7 @@ export function PersistentTerminalHost() { (state) => state.terminalWarmTimeoutMinutes ?? DEFAULT_TERMINAL_WARM_TIMEOUT_MINUTES ); const attachmentDescriptor = snapshot.attachmentDescriptor ?? snapshot.descriptor; + const selectedSessionId = snapshot.descriptor?.sessionId; const terminalContext = attachmentDescriptor ? { descriptorKey: snapshot.descriptorKey!, @@ -167,11 +168,12 @@ export function PersistentTerminalHost() { return ( <>