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.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
Merge batch 11-03 bv: #2727 #2735 #2739 #2730 (#2746)
0xken1520a0f960bc20
diff --git a/backend/src/superTabs/liveness.ts b/backend/src/superTabs/liveness.tsindex da6ef3cce..9cf713020 100644--- a/backend/src/superTabs/liveness.ts+++ b/backend/src/superTabs/liveness.ts@@ -139,13 +139,16 @@ export function toldEngineer(state: SuperTabState, group: Conversation, agentId:}/** The Engineer [agentId] wrote to a step's agent waiting for its revision, in the step's chat or the build's: a "fixed at abc,- * please re-check" is a Ready by post, so that wait ends and its 30 minutes run from now (review of #2659). A step not waiting- * gets no time from it: an Engineer's posts keep no idle Reviewer (review of #2487). */+ * please re-check" is a Ready by post, so that wait ends and its 30 minutes run from now (review of #2659), whether a post or+ * a failed check began it, as revisionReady ends both (#2301: a failed check's wait held a hung Reviewer for hours). A step+ * not waiting gets no time from it: an Engineer's posts keep no idle Reviewer (review of #2487). */export function engineerAnswered(state: SuperTabState, group: Conversation, agentId: string, recipients: string[], now: number): void {const steps = group.reviewOf ? [group] : state.conversations.filter(c => c.reviewOf === group.id)for (const step of steps) {- if (!activeWork(step) || step.assignment!.toldEngineerAt === undefined || !recipients.includes(step.assignment!.agentId)) continue+ if (!activeWork(step) || !recipients.includes(step.assignment!.agentId)) continue+ if (step.assignment!.toldEngineerAt === undefined && step.assignment!.changesRequestedAt === undefined) continueif (reviewedBuild(state, step)?.assignment!.agentId !== agentId) continue+ delete step.assignment!.changesRequestedAtdelete step.assignment!.toldEngineerAtrestartQuietTime(step.assignment!, now)recordTaskState(state, step, now)diff --git a/backend/src/superTabs/steps.test.ts b/backend/src/superTabs/steps.test.tsindex 29cb0f66f..34583581c 100644--- a/backend/src/superTabs/steps.test.ts+++ b/backend/src/superTabs/steps.test.ts@@ -10,6 +10,7 @@ import { extracted } from './parts/write.js'import { stepEndedRows, stepSleeps } from './steps.js'import { reportedAs } from './projectUpdates.js'import { idleNotices } from './tidy.js'+import { QUIET_RUNNING_MS, sweepLiveness } from './liveness.js'const owner: Extract<Actor, { kind: 'person' }> = { kind: 'person', userId: 'owner', email: '[email protected]' }const config: AgentConfiguration = { engine: 'codex', model: 'test-model', effort: 'high', contextWindow: 200000, engineVersion: 'fixture' }@@ -174,6 +175,23 @@ describe('assigning a step', () => {expect(b.f.group(b.id).assignment).toMatchObject({ progressAt: b.f.now })})+ // Diego, 2026-11-03 (#2301): a failed check held the step on its own, so a Reviewer that hung after the Engineer's+ // "fixed, please re-check" post stayed working for hours and no stall woke the PM.+ it('ends a failed check hold too with the Engineer\'s post to it', () => {+ const f = reviewing()+ f.f.run({ type: 'work.status', conversationId: f.f.task, assignmentId: f.f.group(f.f.task).assignment!.id, status: 'review', result: 'PR 7' } as Command, f.f.as(f.f.dev))+ f.f.run({ type: 'work.check', conversationId: f.f.task, assignmentId: f.f.group(f.f.task).assignment!.id, checkId: f.f.group(f.f.task).checks[0]!.id,+ passed: false, evidence: 'Drops the session' } as Command, f.f.as(f.rev))+ post(f.f, f.id, [f.f.dev], f.rev)+ f.f.tick(60_000)+ post(f.f, f.id, [f.rev], f.f.dev)+ expect(f.f.group(f.id).assignment!.changesRequestedAt).toBeUndefined()+ expect(f.f.group(f.id).assignment!.toldEngineerAt).toBeUndefined()+ expect(f.f.group(f.id).assignment).toMatchObject({ status: 'working', progressAt: f.f.now })+ sweepLiveness(f.f.state, f.f.now + QUIET_RUNNING_MS + 5 * 60_000)+ expect(f.f.group(f.id).assignment).toMatchObject({ status: 'lost' })+ })+it('gives no time to a Reviewer that isn\'t waiting: the Engineer\'s posts keep no idle Reviewer', () => {const f = reviewing()const before = f.f.group(f.id).assignment!.progressAt@@ -458,18 +476,49 @@ describe('the PM is not told what a step\'s agent says to its task', () => {const posted = f.run({ type: 'message.send', conversationId: f.task, text: 'Both re-checks pass.', replyTo: null, recipientIds: [] } as Command, f.as(rev)).messagesexpect(posted.map(m => m.recipients)).toEqual([[f.dev]])})- it('the PM is not told a step-only agent is idle', () => {+ it('the PM is not told a step-only agent is idle while the task it checked is open', () => {+ const f = stepsFixture()+ const id = f.step('Review')+ const rev = f.add('rev', id)+ f.run({ type: 'work.assign', conversationId: id, agentId: rev }, f.as(f.dev))+ const project = f.state.projects![0]!.id+ const idle = () => idleNotices(f.state, project, f.now + 60 * 60_000, new Set()).map(n => n.source?.agentId)+ expect(idle()).not.toContain(rev)+ // Its step done, the Engineer may still ask it for the next round (workflow 3).+ f.run({ type: 'work.status', conversationId: id, assignmentId: f.group(id).assignment!.id, status: 'done', result: 'Passed' } as Command, f.as(rev))+ expect(idle()).not.toContain(rev)+ })+ // Diego, 2026-11-02: a step-only Reviewer or Tester was never reported idle while its finished task stayed unarchived,+ // holding a machine slot and quota unseen.+ it('the PM is told a step-only agent is idle once every task it checked has ended, archived or not', () => {const f = stepsFixture()const id = f.step('Review')const rev = f.add('rev', id)f.run({ type: 'work.assign', conversationId: id, agentId: rev }, f.as(f.dev))f.run({ type: 'work.status', conversationId: id, assignmentId: f.group(id).assignment!.id, status: 'done', result: 'Passed' } as Command, f.as(rev))f.run({ type: 'work.status', conversationId: f.task, assignmentId: f.group(f.task).assignment!.id, status: 'done', result: 'Merged' } as Command, f.as(f.dev))+ expect(f.group(f.task).archived).toBeFalsy()const project = f.state.projects![0]!.idconst notices = idleNotices(f.state, project, f.now + 60 * 60_000, new Set()).map(n => n.source?.agentId)- // The Engineer, idle with its task done, is still told: an idle Engineer is stopped.expect(notices).toContain(f.dev)- expect(notices).not.toContain(rev)+ expect(notices).toContain(rev)+ })+ it('a step-only agent with a step of another task still open is not reported idle', () => {+ const f = stepsFixture()+ const id = f.step('Review')+ const rev = f.add('rev', id)+ f.run({ type: 'work.assign', conversationId: id, agentId: rev }, f.as(f.dev))+ f.run({ type: 'work.status', conversationId: id, assignmentId: f.group(id).assignment!.id, status: 'done', result: 'Passed' } as Command, f.as(rev))+ const other = f.run({ type: 'conversation.create', title: 'Fix logout', brief: 'Sign out works.', checks: [] }, f.as(f.lead)).result.conversationId as string+ const dev2 = f.add('dev2', other)+ f.run({ type: 'work.assign', conversationId: other, agentId: dev2 }, f.as(f.lead))+ const second = f.step('Review', f.as(dev2), other)+ f.run({ type: 'conversation.agent', conversationId: second, agentId: rev, present: true, lead: false } as Command, f.as(dev2))+ f.run({ type: 'work.assign', conversationId: second, agentId: rev }, f.as(dev2))+ f.run({ type: 'work.status', conversationId: second, assignmentId: f.group(second).assignment!.id, status: 'done', result: 'Passed' } as Command, f.as(rev))+ f.run({ type: 'work.status', conversationId: f.task, assignmentId: f.group(f.task).assignment!.id, status: 'done', result: 'Merged' } as Command, f.as(f.dev))+ const project = f.state.projects![0]!.id+ expect(idleNotices(f.state, project, f.now + 60 * 60_000, new Set()).map(n => n.source?.agentId)).not.toContain(rev)})})diff --git a/backend/src/superTabs/steps.ts b/backend/src/superTabs/steps.tsindex 90dbdfa34..7f8bab35d 100644--- a/backend/src/superTabs/steps.ts+++ b/backend/src/superTabs/steps.ts@@ -78,9 +78,11 @@ export function taskOwner(state: SuperTabState, step: Conversation): string | nuexport const holdsStepOf = (state: SuperTabState, taskId: string, agentId: string): boolean =>stepsOf(state, taskId).some(s => s.assignment?.agentId === agentId)-/** Whether [agentId] has held steps only, never a task, in the groups loaded: a Reviewer or Tester the instructions keep,- * whatever its role is called, so its idle time is no news for the coordinator. */-export const onlyStepsHeld = (groups: readonly Conversation[], agentId: string): boolean => {+/** Whether [agentId] has held steps only, never a task, in the groups loaded, and a task one of them checks has not ended: a+ * Reviewer or Tester the instructions keep while the work it checked is open, whatever its role is called, so its idle time+ * is no news for the coordinator. Once each of those tasks is done or cancelled it is idle as any agent is, whether or not+ * the task is archived yet (Diego, 2026-11-02: one sat unseen under a finished, unarchived task, holding a slot and quota). */+export const checksOpenWork = (state: SuperTabState, groups: readonly Conversation[], agentId: string): boolean => {const held = groups.filter(g => g.assignment?.agentId === agentId)- return held.length > 0 && held.every(isStep)+ return held.length > 0 && held.every(isStep) && held.some(step => !taskEnded(state, step))}diff --git a/backend/src/superTabs/tidy.ts b/backend/src/superTabs/tidy.tsindex 5aed2fb1c..4fcbbf0af 100644--- a/backend/src/superTabs/tidy.ts+++ b/backend/src/superTabs/tidy.ts@@ -1,4 +1,4 @@-import { isStep, onlyStepsHeld, taskEnded } from './steps.js'+import { checksOpenWork, isStep, taskEnded } from './steps.js'import { isBuddy } from './buddies.js'import { agentDisplayName } from './agentNames.js'import { activeWork, stableId, type Agent, type Conversation, type MessageDraft, type SuperTabState } from './model.js'@@ -63,8 +63,8 @@ export function idleNotices(state: SuperTabState, projectId: string, now: numberconst groups = groupsOf(state, target)if (groups.some(activeWork)) continue// A Reviewer or Tester, by what it worked on: the instructions keep it while the work it checked is open (Ken,- // 2026-11-02: "Tester has had no open task" twice in 8 minutes, nothing for the PM to do).- if (onlyStepsHeld(groups, target.id)) continue+ // 2026-11-02: "Tester has had no open task" twice in 8 minutes, nothing for the PM to do), and no longer.+ if (checksOpenWork(state, groups, target.id)) continueconst since = idleSince(target, groups)if (since === undefined || now - since < IDLE_NOTICE_MS || target.idleNoticedAt === since) continuetarget.idleNoticedAt = sincediff --git a/cli/src/superTabs/route.spec.ts b/cli/src/superTabs/route.spec.tsindex ea9b7fd3d..ca78e0572 100644--- a/cli/src/superTabs/route.spec.ts+++ b/cli/src/superTabs/route.spec.ts@@ -285,6 +285,15 @@ describe('strength, fit and effective cost', () => {for (const b of boxes) expect(r.shown.filter(s => s.machineName === b).map(s => [s.engine, s.fit.status]).sort()).toEqual([['claude', 'fits'], ['codex', 'short']])})// River, 2026-11-03: a Codex reading "unknown" did not say that its owner's machine must relay it.+ // The PM paces its own account by the day since its weekly reset (project instructions, 2026-11-03): "resets in 7 days", a+ // whole day either way, left it half a day off.+ it('says when a weekly window resets to the hour past two days', () => {+ const brief = (resetsIn: number) => quotaBrief({ quota: windows(null, [80, resetsIn]), fit: { status: 'fits' } }, NOW)+ expect(brief(6 * D + 13 * H + 10 * M)).toBe('fits: weekly 80% left, resets in 6d13h')+ expect(brief(5 * D)).toBe('fits: weekly 80% left, resets in 5d')+ expect(brief(2 * D + 23 * H + 40 * M)).toBe('fits: weekly 80% left, resets in 3d')+ expect(brief(30 * H)).toBe('fits: weekly 80% left, resets in 30h')+ })it('says why an unknown quota is unknown', () => {const why = 'This account runs on its owner\'s subscription; its allowance is read on the owner\'s machine.'expect(quotaBrief({ quota: { known: false, leftPercent: null, resetsAt: null, why }, fit: { status: 'unknown' } }, NOW)).toBe(`unknown: ${why}`)diff --git a/cli/src/superTabs/route.ts b/cli/src/superTabs/route.tsindex 1233e04ab..acb4eb88f 100644--- a/cli/src/superTabs/route.ts+++ b/cli/src/superTabs/route.ts@@ -373,6 +373,14 @@ function span(ms: number): string {return `${Math.round(ms / 86_400_000)} days`}const resetsIn = (resetsAt: number, now: number) => span(Math.max(0, resetsAt - now))+/** When a weekly window resets, to the hour past two days ("6d13h"): the PM paces its own account by the day since its reset+ * (project instructions, 2026-11-03), and "7 days", a whole day either way, left it half a day off. */+function weeklyResetsIn(resetsAt: number, now: number): string {+ const ms = Math.max(0, resetsAt - now)+ if (ms < 48 * 3_600_000) return span(ms)+ const hours = Math.round(ms / 3_600_000), days = Math.floor(hours / 24)+ return hours % 24 ? `${days}d${hours % 24}h` : `${days}d`+}function quotaText(q: Quota, now: number): string {if (q.metered) return 'quota metered'if (!q.known || q.leftPercent === null) return q.why ? `quota unknown (${q.why})` : 'quota unknown'@@ -513,7 +521,7 @@ export function quotaBrief(p: Pick<Probe, 'quota' | 'gridModel'> & { fit: Pick<Fconst resetsAt = week ? week.resetsAt : p.quota.resetsAt// Why it is unknown says what would make it known (River, 2026-11-03): a Team account's reading its owner's machine relays.if (!p.quota.known || left === null) return `${p.fit.status}: ${p.quota.why ? cut(p.quota.why, 200) : 'weekly unknown'}`- return `${p.fit.status}: weekly ${Math.round(left)}% left${resetsAt === null ? '' : `, resets in ${resetsIn(resetsAt, now)}`}`+ return `${p.fit.status}: weekly ${Math.round(left)}% left${resetsAt === null ? '' : `, resets in ${weeklyResetsIn(resetsAt, now)}`}`}/** One unrated new agent per machine of the named model's engine, on that machine's first row of the engine, which carriesdiff --git a/cli/src/superTabs/routeCommand.spec.ts b/cli/src/superTabs/routeCommand.spec.tsindex 3c8df0775..b42c9702c 100644--- a/cli/src/superTabs/routeCommand.spec.ts+++ b/cli/src/superTabs/routeCommand.spec.ts@@ -1454,8 +1454,8 @@ describe('routing contributed capacity', () => {expect(answer).toMatchObject({ ok: true, pick: { machineId: 'm1', engine: 'codex' } })expect((answer.alternatives as Array<{ machineId: string; engine: string }>).map(x => [x.machineId, x.engine])).toEqual([['m1', 'claude'], ['m2', 'claude'], ['m3', 'claude']])// Each row says its account's weekly quota, which the project's order picks by (Ken, 2026-11-03).- expect((answer.pick as { quota: string }).quota).toBe('fits: weekly 80% left, resets in 5 days')- expect((answer.alternatives as Array<{ quota: string }>).map(x => x.quota)).toEqual(['fits: weekly 80% left, resets in 5 days', 'metered', 'metered'])+ expect((answer.pick as { quota: string }).quota).toBe('fits: weekly 80% left, resets in 5d')+ expect((answer.alternatives as Array<{ quota: string }>).map(x => x.quota)).toEqual(['fits: weekly 80% left, resets in 5d', 'metered', 'metered'])})// The coordinator picks by the project's order among accounts, so every account is an alternative, once: a Claude account with// 99% left on a machine whose Codex was used up never reached it (Ken, 2026-11-03).diff --git a/desktop/lib/super_tabs/message_row.dart b/desktop/lib/super_tabs/message_row.dartindex 154d63146..41d9e35c7 100644--- a/desktop/lib/super_tabs/message_row.dart+++ b/desktop/lib/super_tabs/message_row.dart@@ -771,6 +771,9 @@ typedef SuperTabMemberOf =/// The line under a thread's root: who replied, how many replies, and when/// the last came. Bold while the thread has a reply the reader has not seen.+/// Like Slack's, it is one padded bar as wide as its words: hover or keyboard+/// focus fills and frames it, reads View thread and shows a chevron, and a+/// click anywhere on it opens the thread (Huy, 2026-11-03, #2315).class SuperTabThreadLine extends StatelessWidget {const SuperTabThreadLine({super.key,@@ -796,8 +799,11 @@ class SuperTabThreadLine extends StatelessWidget {/// picture and status, an agent's avatar.final SuperTabMemberOf? member;+ /// Reply authors' faces: at most this many, newest first.+ static const _faces = 5;+Widget _face(Map<String, dynamic> author) {- const size = grid.AppDesktop.iconSize;+ const size = 24.0;final kind = author['kind'] as String? ?? '';final id = author['id'] as String? ?? '';switch ((kind, member?.call(kind, id))) {@@ -834,30 +840,57 @@ class SuperTabThreadLine extends StatelessWidget {}final count = thread.replies == 1 ? '1 reply' : '${thread.replies} replies';final last = thread.lastAt;- final link = SuperTabLink(+ final lastReply = last == null+ ? null+ : 'Last reply ${superTabAgo(DateTime.now().difference(last))}';+ final when = DesktopChrome.metadata();+ // Wide enough for either words, so hover moves nothing.+ final slot = _widest(context, [?lastReply, 'View thread'], when);+ final link = _SuperTabThreadBar(+ key: ValueKey('super-thread-bar-${thread.id}'),label: unread ? '$count, unread' : count,onTap: onOpen,- child: Row(+ builder: (active) => Row(mainAxisSize: MainAxisSize.min,children: [- for (final author in thread.authors) ...[+ for (final author in thread.authors.take(_faces)) ...[_face(author),const SizedBox(width: grid.AppDesktop.menuInset),],- Text(- count,- key: ValueKey('super-thread-count-${thread.id}'),- style: DesktopChrome.control(- color: DesktopChrome.accent,- ).copyWith(fontWeight: unread ? FontWeight.w700 : FontWeight.w500),+ Flexible(+ child: Text(+ count,+ key: ValueKey('super-thread-count-${thread.id}'),+ maxLines: 1,+ overflow: TextOverflow.ellipsis,+ style: DesktopChrome.control(color: DesktopChrome.accent)+ .copyWith(+ fontWeight: unread ? FontWeight.w700 : FontWeight.w500,+ ),+ ),),- if (last != null) ...[- const SizedBox(width: grid.AppDesktop.controlGap),- Text(- 'Last reply ${superTabAgo(DateTime.now().difference(last))}',- style: DesktopChrome.metadata(),+ const SizedBox(width: grid.AppDesktop.controlGap),+ Flexible(+ child: SizedBox(+ width: slot,+ child: Text(+ active ? 'View thread' : lastReply ?? '',+ maxLines: 1,+ overflow: TextOverflow.ellipsis,+ style: when,+ ),),- ],+ ),+ const SizedBox(width: grid.AppDesktop.controlGap),+ Opacity(+ opacity: active ? 1 : 0,+ child: Icon(+ AppIcons.chevronRight,+ key: ValueKey('super-thread-chevron-${thread.id}'),+ size: AppIcons.inlineSize,+ color: DesktopChrome.muted,+ ),+ ),],),);@@ -865,7 +898,11 @@ class SuperTabThreadLine extends StatelessWidget {padding: const EdgeInsets.only(top: grid.AppDesktop.menuInset),child: trailing == null? link- : _wrapped([link, trailing!, if (end != null) ...[_dot, end!]]),+ : _wrapped([+ link,+ trailing!,+ if (end != null) ...[_dot, end!],+ ]),);}@@ -873,8 +910,102 @@ class SuperTabThreadLine extends StatelessWidget {ExcludeSemantics(child: Text(' · ', style: DesktopChrome.metadata()));/// On one line while it fits, and on two in a narrow chat.- Widget _wrapped(List<Widget> children) => Wrap(- crossAxisAlignment: WrapCrossAlignment.center,- children: children,- );+ Widget _wrapped(List<Widget> children) =>+ Wrap(crossAxisAlignment: WrapCrossAlignment.center, children: children);++ /// The width of the widest of [texts] in [style], as this context lays out.+ static double _widest(+ BuildContext context,+ List<String> texts,+ TextStyle style,+ ) {+ var widest = 0.0;+ for (final text in texts) {+ final painter = TextPainter(+ text: TextSpan(text: text, style: style),+ textDirection: Directionality.of(context),+ textScaler: MediaQuery.textScalerOf(context),+ maxLines: 1,+ )..layout();+ if (painter.width > widest) widest = painter.width;+ painter.dispose();+ }+ return widest.ceilToDouble();+ }+}++/// The reply bar: one target, a hand cursor anywhere on it, reached by Tab and+/// pressed with Enter or Space. Hover fills it and draws the rim; focus fills+/// it and draws the blue boundary. Both rims are reserved at rest, so neither+/// moves the words. [builder] is told whether it is hovered or focused.+class _SuperTabThreadBar extends StatefulWidget {+ const _SuperTabThreadBar({+ super.key,+ required this.label,+ required this.onTap,+ required this.builder,+ });++ final String label;+ final VoidCallback onTap;+ final Widget Function(bool active) builder;++ /// No wider than this, however wide the chat.+ static const maxWidth = 480.0;++ @override+ State<_SuperTabThreadBar> createState() => _SuperTabThreadBarState();+}++class _SuperTabThreadBarState extends State<_SuperTabThreadBar> {+ var _hovered = false;+ var _focused = false;++ @override+ Widget build(BuildContext context) {+ grid.AppTheme.watch(context);+ final radius = BorderRadius.circular(grid.AppCard.insetRadius);+ final active = _hovered || _focused;+ return Semantics(+ button: true,+ label: widget.label,+ child: ConstrainedBox(+ constraints: const BoxConstraints(+ maxWidth: _SuperTabThreadBar.maxWidth,+ minHeight: 32,+ ),+ child: InkWell(+ onTap: widget.onTap,+ onHover: (hovered) => setState(() => _hovered = hovered),+ onFocusChange: (focused) => setState(() => _focused = focused),+ mouseCursor: SystemMouseCursors.click,+ borderRadius: radius,+ hoverColor: Colors.transparent,+ focusColor: Colors.transparent,+ highlightColor: grid.AppSurface.hoverFill,+ splashFactory: NoSplash.splashFactory,+ child: DecoratedBox(+ decoration: BoxDecoration(+ color: active ? grid.AppSurface.hoverFill : Colors.transparent,+ borderRadius: radius,+ border: Border.all(+ color: _focused+ ? DesktopChrome.focusRing+ : _hovered+ ? DesktopChrome.rim+ : Colors.transparent,+ width: grid.AppDesktop.focusWidth,+ ),+ ),+ child: Padding(+ padding: const EdgeInsets.symmetric(+ horizontal: grid.AppDesktop.menuInset,+ ),+ child: ExcludeSemantics(child: widget.builder(active)),+ ),+ ),+ ),+ ),+ );+ }}diff --git a/desktop/test/super_tab_threads_shots_test.dart b/desktop/test/super_tab_threads_shots_test.dartindex e17fcbef8..4f59288d4 100644--- a/desktop/test/super_tab_threads_shots_test.dart+++ b/desktop/test/super_tab_threads_shots_test.dart@@ -3,6 +3,7 @@ import 'dart:io';import 'dart:typed_data';import 'dart:ui' as ui;+import 'package:flutter/gestures.dart';import 'package:flutter/material.dart';import 'package:flutter/rendering.dart';import 'package:flutter_test/flutter_test.dart';@@ -156,6 +157,17 @@ void main() {});await shot('chat');+ // The reply bar under the pointer (Huy, 2026-11-03, #2315).+ final mouse = await tester.createGesture(kind: PointerDeviceKind.mouse);+ await mouse.addPointer(location: Offset.zero);+ await mouse.moveTo(+ tester.getCenter(+ find.byKey(const ValueKey('super-thread-bar-message-1')),+ ),+ );+ await tester.pumpAndSettle();+ await shot('hover');+ await mouse.removePointer();await tester.tap(find.byKey(const ValueKey('super-thread-line-message-1')),);diff --git a/desktop/test/super_tab_threads_test.dart b/desktop/test/super_tab_threads_test.dartindex 90fca6093..e5054f643 100644--- a/desktop/test/super_tab_threads_test.dart+++ b/desktop/test/super_tab_threads_test.dart@@ -1,8 +1,9 @@import 'dart:async';+import 'package:flutter/gestures.dart';import 'package:flutter/material.dart';+import 'package:flutter/rendering.dart';import 'package:flutter/services.dart';-import 'package:flutter/semantics.dart';import 'package:flutter_test/flutter_test.dart';import 'package:harness/shared/theme/app_theme.dart' as grid;import 'package:harness/super_tabs/controller.dart';@@ -11,6 +12,7 @@ import 'package:harness/super_tabs/message_link.dart';import 'package:harness/super_tabs/message_row.dart';import 'package:harness/super_tabs/model.dart';import 'package:harness/super_tabs/view.dart';+import 'package:harness/widgets/desktop_chrome.dart';import 'support/super_tab_fixture.dart';@@ -385,11 +387,8 @@ void main() {expect(left.name, 'gone');expect(left.picture, isNull);expect(left.status, isNull);- // Its size is unchanged.- expect(- tester.getSize(find.byWidget(person)).width,- grid.AppDesktop.iconSize,- );+ // Faces about 24 points, as Slack's (Huy, 2026-11-03, #2315).+ expect(tester.getSize(find.byWidget(person)).width, 24);});testWidgets('a person with a preset shows it', (tester) async {@@ -914,4 +913,150 @@ void main() {expect(find.text('1 reply'), findsOneWidget);expect(find.text('Last reply 2 min ago'), findsOneWidget);});++ // Huy, 2026-11-03 (#2315): the line under a thread's root was hard to click.+ // Like Slack's, it is one padded bar: hover or focus fills and frames it,+ // reads View thread and shows a chevron, and a click anywhere opens it.+ group('the reply bar', () {+ final bar = find.byKey(const ValueKey('super-thread-bar-m1'));+ final chevron = find.byKey(const ValueKey('super-thread-chevron-m1'));++ Future<List<String>> pump(+ WidgetTester tester, {+ double width = 800,+ int authors = 2,+ }) async {+ final opened = <String>[];+ final people = [for (var i = 0; i < authors; i++) 'p$i'];+ await tester.pumpWidget(+ MaterialApp(+ theme: grid.buildAppTheme(brightness: Brightness.light),+ home: Scaffold(+ body: Align(+ alignment: Alignment.topLeft,+ child: SizedBox(+ width: width,+ child: Column(+ crossAxisAlignment: CrossAxisAlignment.start,+ children: [+ SuperTabThreadLine(+ thread: SuperTabThread.fromJson({+ 'id': 'm1',+ 'replies': 17,+ 'lastSequence': 2,+ 'lastAt': DateTime.now()+ .toUtc()+ .subtract(const Duration(minutes: 2))+ .toIso8601String(),+ 'authors': [+ for (final id in people)+ {'kind': 'person', 'id': id, 'name': '[email protected]'},+ ],+ 'people': people,+ }),+ unread: false,+ onOpen: () => opened.add('m1'),+ ),+ ],+ ),+ ),+ ),+ ),+ ),+ );+ return opened;+ }++ BoxDecoration frame(WidgetTester tester) =>+ tester+ .widget<DecoratedBox>(+ find+ .descendant(of: bar, matching: find.byType(DecoratedBox))+ .first,+ )+ .decoration+ as BoxDecoration;+ double chevronOpacity(WidgetTester tester) => tester+ .widget<Opacity>(+ find.ancestor(of: chevron, matching: find.byType(Opacity)).first,+ )+ .opacity;++ testWidgets(+ 'hovering anywhere on it highlights it and offers View thread',+ (tester) async {+ await pump(tester);+ final resting = tester.getSize(bar);+ expect(find.text('Last reply 2 min ago'), findsOneWidget);+ expect(chevronOpacity(tester), 0);+ expect(frame(tester).color, isNot(grid.AppSurface.hoverFill));++ final mouse = await tester.createGesture(+ kind: PointerDeviceKind.mouse,+ pointer: 1,+ );+ await mouse.addPointer(location: Offset.zero);+ addTearDown(mouse.removePointer);+ // Its right end, past the words: still the bar.+ await mouse.moveTo(+ tester.getRect(bar).centerRight - const Offset(3, 0),+ );+ await tester.pumpAndSettle();++ expect(find.text('View thread'), findsOneWidget);+ expect(find.text('Last reply 2 min ago'), findsNothing);+ expect(chevronOpacity(tester), 1);+ expect(frame(tester).color, grid.AppSurface.hoverFill);+ expect((frame(tester).border! as Border).top.color, DesktopChrome.rim);+ expect(+ RendererBinding.instance.mouseTracker.debugDeviceActiveCursor(1),+ SystemMouseCursors.click,+ );+ // Hover moves nothing.+ expect(tester.getSize(bar), resting);+ },+ );++ testWidgets('one click anywhere on it opens the thread', (tester) async {+ final opened = await pump(tester);+ expect(tester.getSize(bar).height, greaterThanOrEqualTo(32));+ expect(tester.getSize(find.byType(SuperTabAvatar).first).height, 24);++ await tester.tapAt(tester.getRect(bar).topLeft + const Offset(3, 3));+ await tester.pump();+ expect(opened, ['m1']);+ await tester.tapAt(tester.getCenter(chevron));+ await tester.pump();+ expect(opened, ['m1', 'm1']);+ });++ testWidgets('Tab reaches it and Enter opens the thread', (tester) async {+ final opened = await pump(tester);+ await tester.sendKeyEvent(LogicalKeyboardKey.tab);+ await tester.pumpAndSettle();+ expect(find.text('View thread'), findsOneWidget);+ expect(chevronOpacity(tester), 1);+ expect(+ (frame(tester).border! as Border).top.color,+ DesktopChrome.focusRing,+ );++ await tester.sendKeyEvent(LogicalKeyboardKey.enter);+ await tester.pump();+ expect(opened, ['m1']);+ });++ testWidgets('it is as wide as its content, within its maximum', (+ tester,+ ) async {+ await pump(tester);+ expect(tester.getSize(bar).width, lessThan(600));++ // Many repliers in a narrow chat: a few faces, and nothing overflows.+ await pump(tester, width: 300, authors: 12);+ expect(tester.takeException(), isNull);+ expect(tester.getSize(bar).width, lessThanOrEqualTo(300));+ expect(find.byType(SuperTabAvatar), findsNWidgets(5));+ });+ });}diff --git a/docs/plans/2026-11-03-thread-reply-bar-plan.md b/docs/plans/2026-11-03-thread-reply-bar-plan.mdnew file mode 100644index 000000000..0f7d17950--- /dev/null+++ b/docs/plans/2026-11-03-thread-reply-bar-plan.md@@ -0,0 +1,63 @@+# The Thread Reply Bar Is One Easy Click Target Implementation Plan++> **How this is worked:** by the project's instructions, task by task, each failing test committed before its code.++**Goal:** The bar under a thread's root (faces, "N replies", "Last reply …") is one comfortable click target that, on hover or keyboard focus, gets a light fill and border, reads "View thread" and shows a chevron at its right, as Slack's does.++**Architecture:** `SuperTabThreadLine` (desktop/lib/super_tabs/message_row.dart) draws the replies part through `SuperTabLink`, a bare link the size of its text with 16-point faces. It gets its own bar instead: a padded, rounded `InkWell` with 24-point faces that tracks hover and focus, and lays out both "Last reply …" and "View thread" and the chevron at rest, showing one, so the bar keeps its size through hover. Its width is its content's up to a maximum. The web app is the same Flutter code, so one change serves Desktop and web. The session-only line (no reply yet), the session mark and End session stay as they are.++**Tech Stack:** Dart, Flutter 3.47.2; widget tests (`flutter test`, and `--platform chrome` for the web).++**Spec:** Task #2315 (Huy), its brief, and the mockup in Huy's proposal thread:++```+resting+ (a)(b) 17 replies Last reply 5 days ago++hover or keyboard focus (light fill and border, pointer anywhere)+┌──────────────────────────────────────────────┐+│ (a)(b) 17 replies View thread › │+└──────────────────────────────────────────────┘+```++## Global Constraints++- The PR body starts with: `Requested by [email protected] through Harness.`+- Harness design language (desktop/design/desktop-design-system.md): controls keep their bounds through hover and focus; hover adds the shared fill (`AppSurface.hoverFill`) and the rim (`DesktopChrome.rim`); keyboard focus has the blue boundary (`DesktopChrome.focusRing`, `AppDesktop.focusWidth`); `AppIcons.chevronRight` at `AppIcons.inlineSize`.+- Faces 24 points. Tab reaches the bar, Enter opens the thread. Pointer cursor anywhere on the bar.+- Huy's look is the merge gate: screenshots of the bar resting and hovered in the PR.+- Desktop tests use a memory store and a fake sign-in; nothing signs the Mac out of the real CLI.++## Review Focus++1. A click on the bar's padding or its chevron, not its words, opens the thread (Task 1 test taps the bar's corner).+2. Hover does not move anything: the bar's size is the same resting and hovered (Task 1 test).+3. Many repliers or a narrow chat: the bar stays within its maximum and the chat's width, its words ellipsized, never overflowing (Task 1 test, 300-point chat).+4. A session thread's mark and End session stay outside the bar and keep working (existing `super_tab_threads_test.dart` tests).+5. The thread view shows no reply bar (the root's line opens nothing there, `view.dart` `onOpenThread`), so "the same in the thread view" holds by the same widget wherever a reply bar is drawn.++---++### Task 1: The reply bar++**Files:**+- Modify: `desktop/lib/super_tabs/message_row.dart` (`SuperTabThreadLine`)+- Test: `desktop/test/super_tab_threads_test.dart`++**Interfaces:**+- Produces: the bar keyed `super-thread-bar-<thread id>`; its words "View thread" on hover or focus; its chevron keyed `super-thread-chevron-<thread id>`, shown (opacity 1) only on hover or focus. `SuperTabThreadLine`'s constructor is unchanged.++- [ ] **Step 1: Write the failing tests** in `super_tab_threads_test.dart`, `group('the reply bar')`:+ - `hovering anywhere on it highlights it and offers View thread` — a mouse moved to the bar's right edge: "View thread" shown, "Last reply 2 min ago" not, the chevron's opacity 1, the bar's decoration has `AppSurface.hoverFill` and a `DesktopChrome.rim` border; the bar's size equals its resting size.+ - `one click anywhere on it opens the thread` — a tap 3 points inside the bar's top-left and one on the chevron each call `onOpen`; the bar is at least 32 points high; a face is 24 points.+ - `Tab reaches it and Enter opens the thread` — Tab focuses it: "View thread" and a `DesktopChrome.focusRing` border; Enter calls `onOpen`.+ - `it is as wide as its content, within its maximum` — in an 800-point column it is narrower than 600; with 12 repliers in a 300-point chat it fits, no overflow.+- [ ] **Step 2: Run** `flutter test test/super_tab_threads_test.dart` in `desktop`: the new tests FAIL (no hover state, no chevron, 16-point faces).+- [ ] **Step 3: Commit** the failing tests and push.+- [ ] **Step 4: Implement** the bar in `message_row.dart`: a private `_SuperTabThreadBar` stateful widget (hover and focus state; `Semantics` button with the line's label; `InkWell` with `SystemMouseCursors.click`, no splash; `AnimatedContainer`-free `DecoratedBox`; padding 8×4; maximum width 480).+- [ ] **Step 5: Run** the file, `flutter analyze lib/super_tabs/message_row.dart`, and the file again with `--platform chrome --dart-define=HARNESS_TEST=true`: PASS.+- [ ] **Step 6: Commit and push**; screenshots resting and hovered (light and dark) in the PR.++### Task 2: Before Ready++- [ ] `flutter test test/super_tab_threads_test.dart test/super_tab_chat_test.dart` and the other Super Tab tests that find the reply line, all passing; red/green evidence comment on the PR; mark it ready; Review step by Routing.