Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apps/dashboard/src/app/(dashboard)/tmux/TmuxPageClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ export default function TmuxPageClient() {
fullBleedMobileTerminal={Boolean(options?.mobileTerminalOnly && mobileTerminalAttached)}
autoAttachTerminal={autoAttachRequested}
terminalControllerRef={terminalControllerRef}
terminalCardClassName={
options?.mobileTerminalOnly ? undefined : 'h-[calc(100dvh-5rem)] min-h-[640px]'
}
/>
</>
);
Expand Down
12 changes: 7 additions & 5 deletions apps/dashboard/src/components/tmux/TmuxClusterRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,18 @@ export function TmuxClusterRow({
<div className="flex items-center gap-2">
<Monitor className="h-4 w-4 text-primary" />
<span className="truncate font-medium">{cluster.tmuxSessionName}</span>
{hostLabel && (
<Badge variant="secondary" className="h-5 px-1.5 text-[10px]">{hostLabel}</Badge>
)}
{cluster.hasUnmanaged && (
<Badge variant="outline" className="text-[10px]">
Untracked
</Badge>
)}
</div>
<div className="flex min-w-0 items-center gap-2 text-xs text-muted-foreground">
{hostLabel && (
<Badge variant="secondary" className="h-5 max-w-24 shrink-0 truncate px-1.5 text-[10px]">
{hostLabel}
</Badge>
)}
<span className="shrink-0 whitespace-nowrap">{cluster.windowCount} window{cluster.windowCount === 1 ? '' : 's'}</span>
<span className="shrink-0">•</span>
<span className="shrink-0 whitespace-nowrap">{cluster.paneCount} pane{cluster.paneCount === 1 ? '' : 's'}</span>
Expand All @@ -92,7 +94,7 @@ export function TmuxClusterRow({
)}
</div>
</div>
<div className="flex shrink-0 items-center gap-2">
<div className="flex shrink-0 items-center gap-1">
{!expanded && triage.approvalCount > 0 && (
<button
type="button"
Expand All @@ -113,7 +115,7 @@ export function TmuxClusterRow({
{triage.waitingCount} waiting
</button>
)}
<span className="text-[11px] text-muted-foreground" suppressHydrationWarning>
<span className="hidden text-[11px] text-muted-foreground 2xl:inline" suppressHydrationWarning>
{hydrated ? formatRelativeTime(cluster.lastActivityAt) : '—'}
</span>
{expanded ? (
Expand Down
2 changes: 1 addition & 1 deletion apps/dashboard/src/components/tmux/TmuxDesktopShell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function TmuxDesktopShell({
onSelectHost={onSelectHost}
/>

<div className="grid gap-6 lg:grid-cols-[minmax(320px,420px)_minmax(0,1fr)] lg:items-start">
<div className="grid gap-6 lg:grid-cols-[minmax(240px,280px)_minmax(0,1fr)] lg:items-start 2xl:grid-cols-[minmax(280px,320px)_minmax(0,1fr)]">
<div className="lg:sticky lg:top-6 lg:max-h-[calc(100dvh-8rem)] lg:overflow-y-auto">
<TmuxRoster
selectedHost={selectedHost}
Expand Down
5 changes: 5 additions & 0 deletions tasks/2026-07-22-android-terminal-daily-driver-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@
- 2026-07-22T12:57:04-04:00 — Fresh Homelinux Reviewer returned PASS at `d64392e`: the prior HIGH WEB-4 blocker is closed, shared terminal/prompt input remains fenced until authoritative convergence, and no new critical/high issue was found.
- 2026-07-22T12:59:20-04:00 — AI Lead integrated W1 at `59daa0e`. Bounded gates passed: 21 dashboard terminal tests, 30 schema tests, 13 control-plane tests, affected Go packages, dashboard/schema/control-plane typechecks, and all 14 applicable desktop Command Center journeys.
- 2026-07-22T13:15:50-04:00 — GitHub CI passed at `9e8eaf3` after the existing smoke fixture acknowledged the new navigation protocol. PR review identified one valid correlated-dispatch failure path; AI Lead began the direct correction. Chris added authenticated web/PWA APK installation to W2, using the Health repo's private download route, settings metadata, and runtime artifact-copy pattern as ground truth.
- 2026-07-22T13:27:05-04:00 — PR #99 merged as `938e7ebd05aef760f20c0162d9461a4937c0d9a9` after the correlated-dispatch correction, focused 13/13 route tests, control-plane typecheck, two full green CI runs, and resolution of all review threads.
- 2026-07-22T13:41:23-04:00 — Coolify deployment `z48ac80aqcn5oaqtnsye122z` finished at exact commit `938e7eb`. Dashboard and control-plane containers report that source commit and public health returned `ok` with two agents. Heavisidelinux and Homelinux were backed up to `~/.local/bin/agentd.bak-w1-20260722T134100-0400`, updated to the identical `9e8eaf3` binary (`d6e4273...`), restarted, and verified at exactly one agentd process each.
- 2026-07-22T13:45:20-04:00 — Created the Bitwarden Secrets Manager `Agent Command` project and migrated the live dashboard access credential as `AGENT_COMMAND_ACCESS_SECRET` without exposing its value. The existing production browser utility then authenticated and rendered the real dashboard, settings, sessions, orchestrator, visualizer, two online hosts, and a 20-session/72-pane tmux roster. Its legacy final `[data-session-card]` wait timed out despite cards being visible in the captured Sessions page, so it does not substitute for the required owner laptop terminal-interaction verdict.
- 2026-07-22T14:10:38-04:00 — Chris's production laptop check rejected W1: attach and typing connected, but the Command Center terminal was only 546×466 px at 1280×720 and was too small for meaningful use or scrollback review. W1-R3 `96bfdcd` narrows the roster, gives the Command Center workbench the remaining viewport without changing mobile or session-detail layouts, and raises the cold-open contract to ≥680×580 px and ≥20 rows. The focused desktop journey, affected desktop input/window/zoom journeys, mobile cold-open, dashboard typecheck, and frontend audit passed; fresh review found no critical/high issue.
- 2026-07-22T14:24:19-04:00 — PR #100's first CI run exposed one directly related narrow-roster defect: host/status metadata reduced the `remote` tmux session label to zero rendered width, failing the existing all-machines smoke path. W1-R3 follow-up `0aa4e8f` moves host identity to the metadata line, reduces the action gap, and hides the low-value age label at narrow desktop widths. The exact failed smoke test now passes locally without weakening its assertion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@
{"ts":"2026-07-22T12:59:20-04:00","project":"android-terminal-daily-driver","event":"lane_completed","lane":"W1-R2-review","role":"Reviewer","model":"gpt-5.6-sol/xhigh","elapsed_minutes":5,"input_tokens":0,"output_tokens":119454,"cost_usd":0,"ref":"d64392e39a4e0b60ef1463b8c11b29434c4ed49e","detail":{"result":"pass","confidence":"high","critical_high_findings":0,"reviewed_ref":"795281803f583c895d6f5a8a5acfbec521662250"}}
{"ts":"2026-07-22T12:59:20-04:00","project":"android-terminal-daily-driver","event":"gate_result","lane":"W1-integration","role":"AI Lead","model":"gpt-5.6-sol/xhigh","elapsed_minutes":2,"input_tokens":0,"output_tokens":0,"cost_usd":0,"ref":"59daa0e40f77405d5a8dee290dad73488a6ef29e","detail":{"result":"pass","dashboard_terminal_tests":"21/21","schema_tests":"30/30","control_plane_tests":"13/13","agentd_packages":"pass","typechecks":"dashboard/schema/control-plane pass","desktop_journey":"14 passed, 5 skipped"}}
{"ts":"2026-07-22T13:15:50-04:00","project":"android-terminal-daily-driver","event":"scope_addition","lane":"W2-android","role":"Human Owner","model":"n/a","elapsed_minutes":0,"input_tokens":0,"output_tokens":0,"cost_usd":0,"ref":"AND-11","detail":{"scope":"authenticated web/PWA APK download and Samsung install entrypoint","ground_truth":"health repo private APK distribution pattern"}}
{"ts":"2026-07-22T13:27:05-04:00","project":"android-terminal-daily-driver","event":"merged","lane":"W1-integration","role":"AI Lead","model":"gpt-5.6-sol/xhigh","elapsed_minutes":0,"input_tokens":0,"output_tokens":0,"cost_usd":0,"ref":"938e7ebd05aef760f20c0162d9461a4937c0d9a9","detail":{"pr":99,"ci":"pass","review_threads_unresolved":0}}
{"ts":"2026-07-22T13:41:23-04:00","project":"android-terminal-daily-driver","event":"production_rollout","lane":"W1-integration","role":"AI Lead","model":"gpt-5.6-sol/xhigh","elapsed_minutes":14,"input_tokens":0,"output_tokens":0,"cost_usd":0,"ref":"z48ac80aqcn5oaqtnsye122z","detail":{"source_commit":"938e7ebd05aef760f20c0162d9461a4937c0d9a9","agentd_version":"9e8eaf3","agentd_sha256":"d6e4273af70136fe98f678bc4b1efad5d7cee86e6e738dbf8ae172106621dc7b","hosts":2,"processes_per_host":1,"health":"ok"}}
{"ts":"2026-07-22T13:45:20-04:00","project":"android-terminal-daily-driver","event":"gate_result","lane":"W1-live","role":"AI Lead","model":"gpt-5.6-sol/xhigh","elapsed_minutes":4,"input_tokens":0,"output_tokens":0,"cost_usd":0,"ref":"production-browser","detail":{"result":"partial","auth":"pass via Bitwarden","hosts_online":2,"tmux_sessions":20,"tmux_panes":72,"terminal_interaction":"human checkpoint required"}}
{"ts":"2026-07-22T14:10:38-04:00","project":"android-terminal-daily-driver","event":"human_feedback","lane":"W1-live","role":"Human Owner","model":"n/a","elapsed_minutes":0,"input_tokens":0,"output_tokens":0,"cost_usd":0,"ref":"production-laptop","detail":{"result":"reject","connection":"pass","typing":"accepted","workspace_px":"546x466","finding":"terminal too small for meaningful use or scrollback review"}}
{"ts":"2026-07-22T14:10:38-04:00","project":"android-terminal-daily-driver","event":"lane_completed","lane":"W1-R3","role":"AI Lead","model":"gpt-5.6-sol/xhigh","elapsed_minutes":20,"input_tokens":0,"output_tokens":0,"cost_usd":0,"ref":"96bfdcd44dd68d33c549e1cb1b7b13a4134cd5b8","detail":{"result":"ready_to_merge","desktop_workspace_min_px":"680x580","negotiated_rows_min":20,"focused_desktop_journey":"pass","affected_desktop_journeys":"4/4","mobile_cold_open":"pass","dashboard_typecheck":"pass","frontend_audit":"pass","review_critical_high":0}}
{"ts":"2026-07-22T14:24:19-04:00","project":"android-terminal-daily-driver","event":"gate_result","lane":"W1-R3","role":"AI Lead","model":"gpt-5.6-sol/xhigh","elapsed_minutes":14,"input_tokens":0,"output_tokens":0,"cost_usd":0,"ref":"0aa4e8fafeb8a356a2ee7648445a3749e044a73f","detail":{"result":"corrected","ci_first_run":"fail","failing_test":"aggregates every online tmux machine and sorts waiting work first","root_cause":"session label rendered at zero width in narrow roster","exact_smoke_rerun":"pass"}}
24 changes: 13 additions & 11 deletions tasks/2026-07-22-android-terminal-daily-driver-status.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
# Android Terminal Daily Driver — Status

- Plan status/version: approved `1719c8c` scope, approval recorded 2026-07-22T12:04:25-04:00
- Current phase: W1 production rollout
- Current phase: W1-R3 desktop workspace correction
- Overall state: running
- Last updated: 2026-07-22T13:15:50-04:00
- Current accepted baseline: production `7b30df046208f1a2ba14b8e34b0095afe9888750`
- Current candidate: PR #99 merge candidate on `refactor/frontend-command-center`; exact production ref is recorded at merge
- Last updated: 2026-07-22T14:24:19-04:00
- Current accepted baseline: production `938e7ebd05aef760f20c0162d9461a4937c0d9a9`
- Current candidate: W1-R3 desktop layout fix through `0aa4e8fafeb8a356a2ee7648445a3749e044a73f`; both hosts remain on agentd `9e8eaf3` with SHA-256 `d6e4273af70136fe98f678bc4b1efad5d7cee86e6e738dbf8ae172106621dc7b`
- Budget used/remaining: setup complete; 7-day project ceiling remains
- Next Human Owner checkpoint: physical Samsung action only if required for APK install/pairing
- Next Human Owner checkpoint: production laptop terminal-use verdict

## Lane Status

| Lane | Current role | State | Deliverable/ref | Last proof | Blocked on | Next action |
|---|---|---|---|---|---|---|
| W1 — Shared terminal repair | AI Lead | deploying | Integrated `9e8eaf3`; Reviewer PASS `d64392e` | Full GitHub CI green, including workspace tests, desktop smoke, Go, and Docker | One valid PR dispatch finding | Correct dispatch failure, re-green CI, merge, and roll out |
| W1 — Shared terminal repair | AI Lead correction | CI rerun | W1-R3 through `0aa4e8f`; PR #100; prior merge `938e7eb`; agentd `9e8eaf3` | At 1280×720 the prior workbench measured 546×466 px; candidate browser journey proves ≥680×580 px and ≥20 terminal rows. Exact narrow-roster smoke regression now passes. | Green PR checks and production deployment | Merge green CI, deploy exact source, then Chris retests |
| W2 — Android vertical slice | Unassigned until W1 contract freeze | held | Native app plus authenticated web/PWA APK delivery | Health repo distribution pattern inspected; AND-11 approved | W1 production rollout and live laptop acceptance | Remain held |
| W3 — Integration and rollout | AI Lead | pending | None | Production baseline identified | W1 and W2 acceptance | Maintain recovery receipts |
| W3 — Integration and rollout | AI Lead | running | W1 web/control-plane and both agentd hosts deployed | Coolify `z48ac80aqcn5oaqtnsye122z`; public health `ok`; explicit binary backups on both hosts | W1 live verdict, then W2 | Maintain recovery receipts |

## Open Gates

| Gate | State | Ground truth | Owner | Next trigger |
|---|---|---|---|---|
| Plan validation | pass | Canonical validator | AI Lead | Refresh at wave boundary |
| W1 reproduction | pass | Production commit `7b30df0`: delayed topology cold-open negotiated exactly one row | W1 Builder | Freeze regression proof |
| W1 review | pass | Fresh Reviewer `d64392e`: prior HIGH WEB-4 blocker closed, no new critical/high finding | AI Lead | Roll out integrated candidate |
| W1 review | pass | Fresh Reviewer `d64392e`: prior HIGH WEB-4 blocker closed, no new critical/high finding | AI Lead | Live laptop check |
| W1 rollout | pass | PR #99 merge `938e7eb`; Coolify exact-source containers; two one-process agentd hosts; public health `ok` with two agents | AI Lead | Live laptop check |
| W1 live laptop | correction required | Chris confirmed the terminal connects and accepts typing, but the production laptop workbench is too small for meaningful use or scrollback review | AI Lead | Deploy W1-R3, then repeat attach/input/scrollback check |
| W2 launch | held | Accepted shared terminal contract on the real production path | AI Lead | W1 production laptop PASS |

## Current Risks and Escalations
Expand All @@ -33,6 +35,6 @@

## Immediate Next Sequence

1. Close the valid correlated-dispatch finding, re-green CI, and merge W1.
2. Roll the compatible agentd binary to Heavisidelinux and Homelinux with one process per host.
3. Exercise the real production laptop path before freezing the Android contract.
1. Merge and deploy W1-R3 at exact source, then verify public health and the rendered production workspace.
2. Chris exercises attach, direct terminal input/output, generated scrollback, pane/window switching, and zoom on the refreshed production laptop path.
3. If the live path passes, freeze W1 and launch W2 with authenticated web/PWA APK delivery in scope.
4 changes: 4 additions & 0 deletions tasks/lessons.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,7 @@
- Date: 2026-07-22
Correction: A non-login SSH probe on homelinux resolved the stale `/usr/local/bin/codex` and falsely suggested `gpt-5.6-sol` was unavailable; the normal login environment used the current `~/.local/bin/codex` successfully.
Rule: Before declaring a remote model or runtime unavailable, verify the login-shell PATH and all installed binaries. Dispatch homelinux Codex lanes through `bash -lic` or the verified absolute binary so stripped SSH environments cannot select stale tooling.

- Date: 2026-07-22
Correction: The repaired production terminal connected and accepted input, but the laptop Command Center still allocated too little space to the actual tmux workbench for meaningful use or scrollback review.
Rule: On desktop, treat the active tmux terminal as the primary work surface: cap and independently scroll navigation/roster regions, give the terminal the remaining viewport with a substantial minimum height, and verify its rendered pixel/grid dimensions at a common laptop viewport rather than accepting any merely nonzero terminal size.
9 changes: 8 additions & 1 deletion tests/journeys/command-center.journey.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,14 @@ test.describe('Command Center program journeys', () => {
await expect.poll(() => {
const url = recorder.terminalWebSocketUrls.at(-1);
return url ? Number(new URL(url).searchParams.get('rows')) : 0;
}).toBeGreaterThanOrEqual(11);
}).toBeGreaterThanOrEqual(20);

if (!(await isMobile(page))) {
const workspace = await page.getByTestId('tmux-terminal-workspace').boundingBox();
expect(workspace).not.toBeNull();
expect(workspace!.width).toBeGreaterThanOrEqual(680);
expect(workspace!.height).toBeGreaterThanOrEqual(580);
}
});

test('window tab retargets the live viewer', async ({ page }) => {
Expand Down
Loading