# Codex Fleet: find the task, keep your place

**Visual review: needs revision.** The product owner rejected this result as draft-like. Its workflow and geometry observations remain available; the [product iteration collection](index.html) follows the subsequent work on mature applications.
The job monitor used opaque IDs as the main labels. Its headers and summary panels pushed the first task to 511 px on a laptop and 694 px on a phone. A failure filter and search query disappeared on reload. On phones, opening a job moved the reader below the entire list.

Productive UI changed this existing dashboard around one task: **find the export failure, inspect the report, return to the same filtered list, and reload without rebuilding the search.**

## Results

Both versions use the same 36 original sample jobs, initial scroll and browser zoom. The public runner serves the dashboard with a local fixture API. Source snapshots include the dashboard's existing conversation, settings and monitor surfaces.

| Measure | Before | After |
|---|---:|---:|
| Complete jobs at 1440 × 900 | 4 | 7 |
| First job top, 1440 × 900 | 511.22 px | 351.80 px |
| Complete jobs at 390 × 844 | 1 | 3 |
| First job top, 390 × 844 | 694.16 px | 486.77 px |
| Complete jobs at 390 × 480 | 0 | 1 |
| Complete jobs at 320 × 568 | 0 | 1 |
| Complete jobs at 768 × 768 | 3 | 4 |
| Complete jobs at 1024 × 600 | 0 | 2 |
| Task title size | 13 px | 14 px |
| Filter and query survive reload | No | Yes |

Measured in Chrome 152.0.7977.82 at device scale 1, light theme, reduced motion and Asia/Taipei time zone. The fixture clock is fixed. Full rows are counted only when their top and bottom fit inside the initial viewport. [Before observations](codex-fleet/before-results.json) · [After observations](codex-fleet/after-results.json).

## The changes

- Put the task's readable title first and keep its ID underneath. All model, role, node and branch information remains available.
- Share a compact toolbar between search, status filters and dispatch. Remove the repeated list heading and reduce the summary panels' framing.
- Preserve filter and search in the URL so reload and copied links return to the same result set.
- Give phones a list/detail flow. Return restores the selected task, keyboard focus and scroll position.
- Put execution metadata behind an existing detail disclosure and show the report near the top.
- On short phones, open summary metrics from the heading's **概況** button. The first complete task remains visible at 390 × 480.
- Add a **清除篩選** action next to an empty result, restoring all 36 jobs in one action.

Task labels have a measured contrast ratio of **16.28:1** against the table surface; secondary labels are **6.87:1**. The title became larger while more jobs fit on screen.

## Desktop

| Before | After |
|---|---|
| ![Original Codex Fleet monitor with four complete task rows](../assets/codex-fleet-before-desktop.png) | ![Improved monitor with readable task titles and seven complete rows](../assets/codex-fleet-after-desktop.png) |

## Phone

| Before | After |
|---|---|
| ![Original mobile monitor](../assets/codex-fleet-before-mobile.png) | ![Improved mobile monitor with three complete task rows](../assets/codex-fleet-after-mobile.png) |
| ![Original mobile detail appears after the task list](../assets/codex-fleet-before-mobile-detail.png) | ![Improved mobile detail with task report and return action](../assets/codex-fleet-after-mobile-detail.png) |

## Reproduce

From the Productive UI repository:

```bash
npm install --ignore-scripts --package-lock=false
npx playwright install chromium
BROWSER_CHANNEL=chromium node docs/cases/codex-fleet/run.mjs before
BROWSER_CHANNEL=chromium node docs/cases/codex-fleet/run.mjs after
```

The runner writes screenshots and observations into `.artifacts/codex-fleet`. It checks all six viewport sizes. The candidate must retain filter/search on reload, clear empty results, open a task with Enter, expose its metadata, close with Escape, restore focus and scroll, and keep one complete task visible on short phones. Primary and secondary text contrast must meet 4.5:1. Any unexpected page error or API mutation fails the run.

[Runner](codex-fleet/run.mjs) · [Before source snapshot](codex-fleet/before-source.json) · [After source snapshot](codex-fleet/after-source.json) · [UI-only patch](codex-fleet/productive-ui.patch).

## Source and application

The baseline is the author's existing Codex Fleet working copy, based on commit `298bf79`, including its in-progress conversation UI. The complete starting static files were preserved before editing. This case changes the monitor's HTML, CSS and client-side interaction; the fixture uses original sample tasks and generic project paths.

The verified patch was applied only after the three current static files still matched that starting snapshot. Codex Fleet serves these files through `FileResponse` on every request, so the updated interface is available on refresh. The running service and job processes continued throughout the case.

[Productive UI](../../README.md) · [Measured demo results](../results.md)
