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
Desktop Tasks pane: a refused Approve never locks the other cards, and every task shows its true status (#4443) (#3529)
0xken15431e4c5a866d
diff --git a/desktop/lib/super_tabs/tasks/personal_task_card.dart b/desktop/lib/super_tabs/tasks/personal_task_card.dartindex 267169dea..aab047b3e 100644--- a/desktop/lib/super_tabs/tasks/personal_task_card.dart+++ b/desktop/lib/super_tabs/tasks/personal_task_card.dart@@ -113,7 +113,10 @@ class _CardState extends State<SuperTabPersonalTaskCard> {),),const SizedBox(width: grid.AppDesktop.controlGap),- SuperTabTaskStatusMark(w.task.status),+ SuperTabTaskStatusMark(+ w.task.status,+ reason: w.task.reason,+ ),],),const SizedBox(height: grid.AppDesktop.controlGap),@@ -201,17 +204,22 @@ class _Tag extends StatelessWidget {);}-/// A task's status as the Tasks pane marks it: a proposal and a rejection by their own icons, work by its activity.+/// A task's status as the Tasks pane marks it: a proposal and a rejection by their own icons, work by its activity,+/// each named in the task's own words, never the terminal's.class SuperTabTaskStatusMark extends StatelessWidget {- const SuperTabTaskStatusMark(this.status, {super.key});+ const SuperTabTaskStatusMark(this.status, {super.key, this.reason});final String status;+ /// Why it was rejected: said on hover, as the person who rejected it typed it.+ final String? reason;+@overrideWidget build(BuildContext context) {+ final label = superTabTaskStatusLabel(status);if (status == 'proposal' || status == 'rejected') {- final label = superTabTaskStatusLabel(status);+ final why = status == 'rejected' ? superTabTaskRejection(reason) : null;return Tooltip(- message: label,+ message: why == null ? label : '$label: $why',child: Icon(status == 'proposal' ? AppIcons.circleDashed : AppIcons.circleX,size: AppIcons.metadataSize,@@ -219,25 +227,50 @@ class SuperTabTaskStatusMark extends StatelessWidget {),);}- return ActivityMark(- activity: superTabTaskActivity(status),- color: Theme.of(context).colorScheme.onSurface,+ return Tooltip(+ message: label,+ child: ActivityMark(+ activity: superTabTaskActivity(status),+ color: Theme.of(context).colorScheme.onSurface,+ tooltip: false,+ ),);}}+/// The mark of each backend status (`WorkStatus`, backend superTabs/model.ts). One added later reads as unknown,+/// never as starting.HarnessActivity superTabTaskActivity(String status) => switch (status) {- 'done' || 'shipped' => HarnessActivity.done,+ 'planned' => HarnessActivity.starting,'working' => HarnessActivity.working,- 'needs_human' || 'needs_human_approval' => HarnessActivity.needsInput,- 'blocked' || 'stuck' => HarnessActivity.failed,- 'stopped' => HarnessActivity.paused,- _ => HarnessActivity.starting,+ 'needs_human' || 'review' => HarnessActivity.needsInput,+ 'blocked' => HarnessActivity.failed,+ 'done' => HarnessActivity.done,+ 'stopped' || 'cancelled' => HarnessActivity.paused,+ 'lost' => HarnessActivity.offline,+ _ => HarnessActivity.unknown,};-/// The status in words, for the task's header and for readers of the mark.+/// The status in words, for the task's header and for readers of the mark: the backend's labels (`STATUS_LABELS`),+/// as the Board says them.String superTabTaskStatusLabel(String status) => switch (status) {'proposal' => 'Proposal','rejected' => 'Rejected',- _ => superTabTaskActivity(status).label,+ 'planned' => 'Planned',+ 'working' => 'Working',+ 'needs_human' => 'Needs a human',+ 'blocked' => 'Stuck',+ 'review' => 'Ready for review',+ 'done' => 'Done',+ 'stopped' => 'Stopped',+ 'cancelled' => 'Cancelled',+ 'reconciling' => 'Checking its agent',+ 'lost' => 'Agent lost',+ _ => HarnessActivity.unknown.label,};++/// The reason a rejected task was turned down, or null when none was given.+String? superTabTaskRejection(String? reason) {+ final text = reason?.trim();+ return text == null || text.isEmpty ? null : text;+}diff --git a/desktop/lib/super_tabs/tasks/personal_tasks_pane.dart b/desktop/lib/super_tabs/tasks/personal_tasks_pane.dartindex 33580d159..1fd306b01 100644--- a/desktop/lib/super_tabs/tasks/personal_tasks_pane.dart+++ b/desktop/lib/super_tabs/tasks/personal_tasks_pane.dart@@ -87,21 +87,28 @@ class _TasksPaneState extends State<SuperTabPersonalTasksPane> {? await owner.retry(): await owner.command(_action!, operationId: _operationId);if (!mounted || !identical(owner, c)) return;+ // The controller keeps an action whose answer was lost and drops one the server refused. The pane follows it:+ // a copy kept after a refusal locked every card, and its Retry sent the refused change again (audit #4436, 3).+ final lost = answer == null && owner.hasPendingAction;+ final updateRequired = owner.operationErrorCode == 'UPDATE_REQUIRED';+ final refusal = answer == null && !lost+ ? owner.takeOperationError()+ : null;setState(() {- // Done, or refused: the controller holds it no more, so neither does Tasks (task #4220).- final settled = answer != null || !owner.hasPendingAction;- if (settled) {+ if (lost) {+ _error = 'The change is not confirmed. Retry to check it.';+ } else {_action = null;_operationId = null;- }- if (answer == null) {- _error = owner.operationErrorCode == 'UPDATE_REQUIRED'- ? 'Update Harness to change Tasks.'- : settled- ? owner.operationError ?? 'The change was refused.'- : 'The change is not confirmed. Retry to check it.';+ if (answer == null) {+ _error = updateRequired+ ? 'Update Harness to change Tasks.'+ : refusal ?? 'The change was refused.';+ }}});+ // A refusal means the task changed under the person: what it is now is in the next read.+ if (answer == null && !lost) unawaited(owner.refresh());} catch (_) {if (mounted && identical(owner, c)) {setState(diff --git a/desktop/lib/super_tabs/tasks/task_header.dart b/desktop/lib/super_tabs/tasks/task_header.dartindex c80f4cd8d..d1dbeba00 100644--- a/desktop/lib/super_tabs/tasks/task_header.dart+++ b/desktop/lib/super_tabs/tasks/task_header.dart@@ -34,6 +34,9 @@ class SuperTabTaskHeader extends StatelessWidget {.firstOrNull;final agent = snapshot?.agent(task.agentId ?? '');final pr = task.pullRequestUrl;+ final rejection = task.status == 'rejected'+ ? superTabTaskRejection(task.reason)+ : null;const avatar = 18.0;Widget fact(List<Widget> children) => Row(mainAxisSize: MainAxisSize.min,@@ -71,7 +74,7 @@ class SuperTabTaskHeader extends StatelessWidget {crossAxisAlignment: WrapCrossAlignment.center,children: [fact([- SuperTabTaskStatusMark(task.status),+ SuperTabTaskStatusMark(task.status, reason: task.reason),words(superTabTaskStatusLabel(task.status)),]),if (task.requesterId case final id?)@@ -142,6 +145,11 @@ class SuperTabTaskHeader extends StatelessWidget {),],),+ // Its own line, so a long reason wraps under the facts (audit #4436, 17).+ if (rejection != null) ...[+ const SizedBox(height: grid.AppDesktop.menuInset),+ Text('Reason: $rejection', style: DesktopChrome.metadata()),+ ],],),);diff --git a/desktop/test/super_tab_personal_tasks_middle_test.dart b/desktop/test/super_tab_personal_tasks_middle_test.dartindex 1a67f0577..3e1d1b30e 100644--- a/desktop/test/super_tab_personal_tasks_middle_test.dart+++ b/desktop/test/super_tab_personal_tasks_middle_test.dart@@ -3,6 +3,8 @@ import 'package:flutter_test/flutter_test.dart';import 'package:harness/core/open_in_browser.dart';import 'package:harness/super_tabs/identity.dart';import 'package:harness/super_tabs/tasks/personal_task_card.dart';+import 'package:harness/super_tabs/tasks/personal_tasks.dart';+import 'package:harness/super_tabs/tasks/task_header.dart';import 'package:harness/super_tabs/view.dart';import 'package:harness/super_tabs/zone_time.dart';@@ -118,4 +120,54 @@ void main() {isTrue,);});++ group('the header of a rejected task shows why (finding 17)', () {+ Future<TasksFixture> header(+ WidgetTester t,+ Map<String, dynamic> row,+ ) async {+ final f = TasksFixture();+ addTearDown(f.controller.dispose);+ await f.controller.refresh();+ await t.pumpWidget(+ MaterialApp(+ home: Scaffold(+ body: SizedBox(+ width: 600,+ child: SuperTabTaskHeader(+ controller: f.controller,+ task: SuperTabPersonalTask(row),+ ),+ ),+ ),+ ),+ );+ return f;+ }++ testWidgets('its reason under the status, and on the mark', (t) async {+ await header(t, {+ ...task('aeef', 1, 20),+ 'status': 'rejected',+ 'reason': 'Too much scope',+ });+ expect(find.text('Rejected'), findsOneWidget);+ expect(find.text('Reason: Too much scope'), findsOneWidget);+ expect(find.byTooltip('Rejected: Too much scope'), findsOneWidget);+ });+ testWidgets('a long reason wraps instead of overflowing', (t) async {+ await header(t, {+ ...task('aeef', 1, 20),+ 'status': 'rejected',+ 'reason': List.filled(100, 'scope').join(' '),+ });+ expect(t.takeException(), isNull);+ expect(find.textContaining('Reason: scope scope'), findsOneWidget);+ });+ testWidgets('a task in review says so, and no reason line', (t) async {+ await header(t, {...task('aeef', 1, 20), 'status': 'review'});+ expect(find.text('Ready for review'), findsOneWidget);+ expect(find.textContaining('Reason:'), findsNothing);+ });+ });}diff --git a/desktop/test/super_tab_personal_tasks_pane_test.dart b/desktop/test/super_tab_personal_tasks_pane_test.dartindex 281c4dfae..05bb26275 100644--- a/desktop/test/super_tab_personal_tasks_pane_test.dart+++ b/desktop/test/super_tab_personal_tasks_pane_test.dart@@ -27,6 +27,9 @@ class TasksFixture {/// The server's answer to the next command: refused, as a 4xx.SuperTabFailure? refuse;++ /// Change reads, so a test sees the pane read its tasks again.+ int reads = 0;Completer<void>? hold;String mode = 'autoApprove';var rows = [task('old', 1, 10), task('new', 1, 20)];@@ -81,6 +84,7 @@ class TasksFixture {}return {'result': <String, dynamic>{}};}+ reads++;final result = path.endsWith('/parts')? recorded('first_load'): {@@ -282,7 +286,11 @@ void main() {'conversationId': 'new','reason': 'Too much scope',});- expect(find.byTooltip('Rejected'), findsOneWidget);+ // The mark says why on hover (finding 17).+ expect(+ inCard('new', find.byTooltip('Rejected: Too much scope')),+ findsOneWidget,+ );});testWidgets('retry uses the same receipt and never displays raw error', (t,@@ -299,6 +307,147 @@ void main() {expect(f.operations.toSet().length, 1);expect(f.commands.length, 2);});+ testWidgets('every status shows its own word and mark (finding 4)', (+ t,+ ) async {+ const statuses = <(String, String, HarnessActivity?)>[+ ('planned', 'Planned', HarnessActivity.starting),+ ('working', 'Working', HarnessActivity.working),+ ('needs_human', 'Needs a human', HarnessActivity.needsInput),+ ('blocked', 'Stuck', HarnessActivity.failed),+ ('review', 'Ready for review', HarnessActivity.needsInput),+ ('done', 'Done', HarnessActivity.done),+ ('stopped', 'Stopped', HarnessActivity.paused),+ ('cancelled', 'Cancelled', HarnessActivity.paused),+ ('reconciling', 'Checking its agent', HarnessActivity.unknown),+ ('lost', 'Agent lost', HarnessActivity.offline),+ ('proposal', 'Proposal', null),+ ('rejected', 'Rejected', null),+ ('a-later-status', 'Status unavailable', HarnessActivity.unknown),+ ];+ await mount(t);+ f.rows+ ..clear()+ ..addAll([+ for (final (i, (status, _, _)) in statuses.indexed)+ {...task(status, 1, 100 - i), 'status': status, 'canApprove': false},+ ]);+ f.controller.personalTasks!.apply(feed(f.rows, reset: true));+ await t.binding.setSurfaceSize(const Size(340, 4000));+ addTearDown(() => t.binding.setSurfaceSize(null));+ await t.pumpWidget(+ MaterialApp(+ home: Scaffold(+ body: SuperTabPersonalTasksPane(+ controller: f.controller,+ onOpenTask: (_) {},+ ),+ ),+ ),+ );+ await t.pump();+ for (final (status, word, activity) in statuses) {+ expect(+ inCard(status, find.byTooltip(word)),+ findsOneWidget,+ reason: status,+ );+ if (activity != null) {+ final mark = t.widget<ActivityMark>(+ inCard(status, find.byType(ActivityMark)),+ );+ expect(mark.activity, activity, reason: status);+ }+ }+ });+ group('a refused change unlocks the pane and says why (finding 3)', () {+ FilledButton approve(String id) =>+ find+ .ancestor(+ of: inCard(id, find.text('Approve')),+ matching: find.byType(FilledButton),+ )+ .evaluate()+ .single+ .widget+ as FilledButton;+ for (final (status, code, sentence) in [+ (409, 'CONFLICT', 'The suggested agent changed. Read the task again.'),+ (403, 'FORBIDDEN', 'You can no longer approve this task.'),+ ]) {+ testWidgets('$status: the server\'s sentence, no Retry, cards work', (+ t,+ ) async {+ await mount(t);+ f.refuse = SuperTabFailure(code, sentence, statusCode: status);+ final before = f.reads;+ await t.tap(inCard('new', find.text('Approve')));+ await t.pumpAndSettle();+ expect(find.text(sentence), findsOneWidget);+ expect(find.text('Retry'), findsNothing);+ expect(approve('old').onPressed, isNotNull);+ expect(approve('new').onPressed, isNotNull);+ expect(f.reads, greaterThan(before), reason: 'reads the task again');+ f.refuse = null;+ await t.tap(inCard('old', find.text('Approve')));+ await t.pumpAndSettle();+ expect(f.commands.length, 2);+ expect(f.operations.toSet().length, 2, reason: 'a new change');+ expect(find.text(sentence), findsNothing);+ });+ }+ testWidgets('a refused Retry of a lost answer unlocks too', (t) async {+ await mount(t);+ f.fail = true;+ await t.tap(inCard('new', find.text('Approve')));+ await t.pumpAndSettle();+ expect(find.text('Retry'), findsOneWidget);+ expect(approve('old').onPressed, isNull);+ f+ ..fail = false+ ..refuse = const SuperTabFailure(+ 'CONFLICT',+ 'This task is archived.',+ statusCode: 409,+ );+ await t.tap(find.text('Retry'));+ await t.pumpAndSettle();+ expect(find.text('This task is archived.'), findsOneWidget);+ expect(find.text('Retry'), findsNothing);+ expect(approve('old').onPressed, isNotNull);+ });+ testWidgets('an update required says so, with no Retry', (t) async {+ await mount(t);+ f.refuse = const SuperTabFailure(+ 'UPDATE_REQUIRED',+ 'fixture private payload',+ statusCode: 426,+ );+ await t.tap(inCard('new', find.text('Approve')));+ await t.pumpAndSettle();+ expect(find.text('Update Harness to change Tasks.'), findsOneWidget);+ expect(find.textContaining('fixture private'), findsNothing);+ expect(find.text('Retry'), findsNothing);+ });+ testWidgets('a refused mode change unlocks the cards', (t) async {+ await mount(t);+ f.refuse = const SuperTabFailure(+ 'FORBIDDEN',+ 'Only members choose how their tasks are approved.',+ statusCode: 403,+ );+ await t.tap(find.byKey(const ValueKey('tasks-approval-mode')));+ await t.pumpAndSettle();+ await t.tap(find.text('Review').last);+ await t.pumpAndSettle();+ expect(+ find.text('Only members choose how their tasks are approved.'),+ findsOneWidget,+ );+ expect(find.text('Retry'), findsNothing);+ expect(approve('new').onPressed, isNotNull);+ });+ });// Task #4220: the controller drops a refused change, but the pane kept it, so Tasks stayed disabled and its Retry sent// the refused change again.testWidgets('a refused change says the server\'s reason and Tasks works 'diff --git a/desktop/test/super_tab_personal_tasks_shots_test.dart b/desktop/test/super_tab_personal_tasks_shots_test.dartindex ddb573c3b..52957e5a2 100644--- a/desktop/test/super_tab_personal_tasks_shots_test.dart+++ b/desktop/test/super_tab_personal_tasks_shots_test.dart@@ -4,6 +4,10 @@ import 'package:flutter/material.dart';import 'package:flutter/services.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';+import 'package:harness/super_tabs/tasks/personal_tasks.dart';+import 'package:harness/super_tabs/tasks/task_header.dart';+import 'package:harness/terminal/terminal_typography.dart';import 'package:harness/super_tabs/tasks/personal_tasks_pane.dart';import 'super_tab_personal_tasks_pane_test.dart' show TasksFixture;@@ -17,6 +21,8 @@ void main() {if (shots != null && Platform.isMacOS) {for (final (family, path) in [('Menlo', '/System/Library/Fonts/Menlo.ttc'),+ // Activity marks draw in the terminal's face; without it "?" is a block.+ (terminalFontFamily, '/System/Library/Fonts/Menlo.ttc'),('Apple Symbols', '/System/Library/Fonts/Apple Symbols.ttf'),]) {final bytes = ByteData.sublistView(await File(path).readAsBytes());@@ -102,4 +108,87 @@ void main() {await t.pumpAndSettle();});}++ // Audit #4436 findings 3, 4 and 17: a refusal said in the pane with every card still working, each status in its+ // own word, and a rejected task's reason in its header.+ for (final brightness in Brightness.values) {+ testWidgets('a refusal, every status and a reason in ${brightness.name}', (+ t,+ ) async {+ final f = TasksFixture();+ addTearDown(f.controller.dispose);+ Map<String, dynamic> row(+ String id,+ int at,+ String title,+ String status,+ ) => {+ ...task(id, 1, at),+ 'title': title,+ 'projectName': 'Harness',+ 'status': status,+ 'canApprove': status == 'proposal',+ 'suggested': status == 'proposal',+ };+ f.rows+ ..clear()+ ..addAll([+ row('a', 90, 'Add the project export', 'proposal'),+ row('b', 80, 'Keep reconnects quiet', 'review'),+ row('c', 70, 'Name the machine row menu', 'planned'),+ row('d', 60, 'Drop the old sync path', 'cancelled'),+ row('e', 50, 'Repair the retry state', 'done'),+ row('f', 40, 'Bound the history read', 'blocked'),+ {+ ...row('g', 30, 'Expand the settings page', 'rejected'),+ 'reason': 'Keep the first release small',+ },+ ]);+ await f.controller.refresh();+ t.view.physicalSize = const Size(440, 1000);+ t.view.devicePixelRatio = 1;+ addTearDown(t.view.reset);+ grid.AppTheme.brightness.value = brightness;+ addTearDown(() => grid.AppTheme.brightness.value = Brightness.light);+ Widget app(Widget body) => MaterialApp(+ debugShowCheckedModeBanner: false,+ theme: grid.buildAppTheme(brightness: brightness),+ home: Scaffold(body: body),+ );+ await t.pumpWidget(+ app(+ SuperTabPersonalTasksPane(+ controller: f.controller,+ onOpenTask: (_) {},+ ),+ ),+ );+ await t.pumpAndSettle();+ f.refuse = const SuperTabFailure(+ 'CONFLICT',+ 'The suggested agent changed. Read the task again.',+ statusCode: 409,+ );+ await t.tap(find.text('Approve'));+ await t.pumpAndSettle();+ expect(t.takeException(), isNull);+ await captureWindow(t, shots, 'tasks-refused-${brightness.name}');+ t.view.physicalSize = const Size(720, 200);+ for (final (id, name) in [('g', 'rejected'), ('b', 'review')]) {+ await t.pumpWidget(+ app(+ SuperTabTaskHeader(+ controller: f.controller,+ task: SuperTabPersonalTask(+ f.rows.firstWhere((r) => r['id'] == id),+ ),+ ),+ ),+ );+ await t.pumpAndSettle();+ expect(t.takeException(), isNull);+ await captureWindow(t, shots, 'task-header-$name-${brightness.name}');+ }+ });+ }}diff --git a/docs/plans/2026-11-07-tasks-pane-truth-plan.md b/docs/plans/2026-11-07-tasks-pane-truth-plan.mdnew file mode 100644index 000000000..868ea55e5--- /dev/null+++ b/docs/plans/2026-11-07-tasks-pane-truth-plan.md@@ -0,0 +1,103 @@+# Tasks pane tells the truth Implementation Plan++> Written by the writing-plans way of working; the Engineer implements it task by task, each failing test first.++**Goal:** Fix findings 3, 4 and 17 of the Desktop 1.3.89 audit (#4436): a refused Approve or Reject never locks the+Tasks pane, every task shows its own status, and a rejected task shows why.++**Architecture:** The controller already drops an action the server refused (a 4xx other than 408 and 429) and keeps+one whose answer was lost. The pane keeps its own copy of the action, which is what locks every card; it now drops that+copy on a refusal, says the server's sentence and reads the task again, keeping Retry for a lost answer only. The status+words and marks come from one mapping in `personal_task_card.dart`, used by the card and the task header; it names every+backend status. The rejection reason the row already carries is shown in the header and on the mark's hover.++**Tech Stack:** Flutter (Desktop), widget tests with a memory store and a fake sign-in.++**Spec:** `docs/audits/2026-11-07-desktop-1.3.89.md` on PR #3526, findings 3, 4 and 17 and their proposed tasks.++## Global Constraints++- Desktop only (`desktop/lib/`); no server change is needed: the backend already sends the refusal's sentence, every+ status and the reason (`backend/src/superTabs/read/personalTasks.ts`).+- Reuse existing components and styles; change only what the findings name.+- Words follow the backend's status labels (`STATUS_LABELS` in `backend/src/superTabs/model.ts`): Ready for review,+ Planned, Cancelled, Stuck, Done.+- Desktop tests use a memory store and a fake sign-in. Light and dark screenshots for each finding.+- Platforms: shared Flutter code, so macOS, Windows and Linux alike; tested offscreen on macOS.++## Review Focus++- A refusal of the approval mode menu (not a card) unlocks the same way: same `_send` path, covered by the 403 test.+- An Update-required refusal says "Update Harness to change Tasks." with no Retry.+- A refusal after a Retry of a lost answer unlocks too, rather than offering Retry again.+- A status the backend adds later reads "Status unavailable", never "Starting".+- A long rejection reason wraps in the header instead of overflowing.++---++### Task 1: A refused Approve unlocks the pane and says why (finding 3)++**Files:**+- Modify: `desktop/lib/super_tabs/tasks/personal_tasks_pane.dart` (`_send`, the error block)+- Test: `desktop/test/super_tab_personal_tasks_pane_test.dart`++**Interfaces:**+- Consumes: `SuperTabController.hasPendingAction`, `takeOperationError()`, `operationErrorCode`, `refresh()`.++- [ ] **Step 1: Write the failing tests** — the fixture gets `Object? refusal`, thrown from a POST, and counts change+ reads. For a 409 `SuperTabFailure('CONFLICT', 'The suggested agent changed. Read the task again.', statusCode: 409)`+ and a 403 `FORBIDDEN`: after Approve the sentence shows, `Retry` is absent, the other card's Approve is enabled, a+ second read happened, and a second Approve sends a new command. A refusal after a Retry of a lost answer unlocks too.+- [ ] **Step 2: Run** `flutter test test/super_tab_personal_tasks_pane_test.dart` — the new tests FAIL (the generic+ "not confirmed" text, Retry shown, buttons disabled).+- [ ] **Step 3: Implement** — after `command`/`retry` returns null: when `owner.hasPendingAction` the answer was lost+ (keep the action, the "not confirmed" text and Retry); otherwise drop `_action` and `_operationId`, show+ "Update Harness to change Tasks." for `UPDATE_REQUIRED` or else `owner.takeOperationError()`, and+ `unawaited(owner.refresh())`. Retry shows only while `_action != null`.+- [ ] **Step 4: Run** the same file — PASS.+- [ ] **Step 5: Commit** the test first, then the code.++### Task 2: Every task shows its own status (finding 4)++**Files:**+- Modify: `desktop/lib/super_tabs/tasks/personal_task_card.dart` (`SuperTabTaskStatusMark`, `superTabTaskActivity`,+ `superTabTaskStatusLabel`)+- Test: `desktop/test/super_tab_personal_tasks_pane_test.dart`++**Interfaces:**+- Produces: `String superTabTaskStatusLabel(String status)`, `HarnessActivity superTabTaskActivity(String status)`+ (unchanged signatures), and the mark's tooltip is that label.++- [ ] **Step 1: Write the failing test** listing every status with its word and mark:+ planned Planned ◌ starting; working Working; needs_human Needs a human (needsInput); blocked Stuck (failed);+ review Ready for review (needsInput); done Done (done); stopped Stopped (paused); cancelled Cancelled (paused);+ reconciling Checking its agent (unknown); lost Agent lost (offline); proposal Proposal; rejected Rejected;+ anything else Status unavailable (unknown). The mark's tooltip reads the same word.+- [ ] **Step 2: Run** — FAIL ("Starting", "Finished · unread", "Failed").+- [ ] **Step 3: Implement** the two switches over the backend's statuses; the mark wraps `ActivityMark(tooltip: false)`+ in a `Tooltip` with the label, as the Board tile does.+- [ ] **Step 4: Run** — PASS, with `super_tab_personal_tasks_middle_test.dart`.+- [ ] **Step 5: Commit** the test first, then the code.++### Task 3: A rejected task shows its reason (finding 17)++**Files:**+- Modify: `desktop/lib/super_tabs/tasks/personal_task_card.dart` (`SuperTabTaskStatusMark` takes `reason`),+ `desktop/lib/super_tabs/tasks/task_header.dart` (a reason line under the facts)+- Test: `desktop/test/super_tab_personal_tasks_middle_test.dart`, `desktop/test/super_tab_personal_tasks_pane_test.dart`++**Interfaces:**+- Produces: `SuperTabTaskStatusMark(String status, {String? reason})`; the tooltip reads "Rejected: <reason>".++- [ ] **Step 1: Write the failing tests** — the card's mark has tooltip "Rejected: Too much scope"; the header of that+ task shows "Reason: Too much scope", and a 600-character reason lays out without an exception.+- [ ] **Step 2: Run** — FAIL.+- [ ] **Step 3: Implement** — the card and header pass `task.reason`; the header adds the line in the metadata style+ when the task is rejected with a reason.+- [ ] **Step 4: Run** — PASS.+- [ ] **Step 5: Commit** the test first, then the code.++### Task 4: Screenshots++- [ ] Extend `desktop/test/super_tab_personal_tasks_shots_test.dart` with a refused Approve, every status card and a+ rejected task's header, in light and dark; run with `HARNESS_V3_TASKS_SHOTS=<dir>` and attach the shots to the PR.diff --git a/docs/plans/assets/tasks-pane-truth/task-header-rejected-dark.png b/docs/plans/assets/tasks-pane-truth/task-header-rejected-dark.pngnew file mode 100644index 000000000..1b9447c2aBinary files /dev/null and b/docs/plans/assets/tasks-pane-truth/task-header-rejected-dark.png differdiff --git a/docs/plans/assets/tasks-pane-truth/task-header-rejected-light.png b/docs/plans/assets/tasks-pane-truth/task-header-rejected-light.pngnew file mode 100644index 000000000..f2ef0c641Binary files /dev/null and b/docs/plans/assets/tasks-pane-truth/task-header-rejected-light.png differdiff --git a/docs/plans/assets/tasks-pane-truth/task-header-review-dark.png b/docs/plans/assets/tasks-pane-truth/task-header-review-dark.pngnew file mode 100644index 000000000..786090cccBinary files /dev/null and b/docs/plans/assets/tasks-pane-truth/task-header-review-dark.png differdiff --git a/docs/plans/assets/tasks-pane-truth/task-header-review-light.png b/docs/plans/assets/tasks-pane-truth/task-header-review-light.pngnew file mode 100644index 000000000..835d2fcf8Binary files /dev/null and b/docs/plans/assets/tasks-pane-truth/task-header-review-light.png differdiff --git a/docs/plans/assets/tasks-pane-truth/tasks-refused-dark.png b/docs/plans/assets/tasks-pane-truth/tasks-refused-dark.pngnew file mode 100644index 000000000..d69258878Binary files /dev/null and b/docs/plans/assets/tasks-pane-truth/tasks-refused-dark.png differdiff --git a/docs/plans/assets/tasks-pane-truth/tasks-refused-light.png b/docs/plans/assets/tasks-pane-truth/tasks-refused-light.pngnew file mode 100644index 000000000..2fdea055bBinary files /dev/null and b/docs/plans/assets/tasks-pane-truth/tasks-refused-light.png differ