Skip to content

docs: the ask row examples in orchestration.md read as the GUI shows them - #275

Open
connorburgess wants to merge 2 commits into
spacesheep-dev:mainfrom
connorburgess:docs/orchestration-ask-row-durations
Open

connorburgess wants to merge 2 commits into
spacesheep-dev:mainfrom
connorburgess:docs/orchestration-ask-row-durations

Conversation

@connorburgess

@connorburgess connorburgess commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Updated against v0.8.18 / main d16a2c01 on 2026-12-05. Current validation and refresh details.

What

docs/orchestration.md now gives the ask row's examples as the GUI draws them: running 1 m (was running 1 m 20 s), answered in 2 m (was answered in 2 m 05 s), and with the answer brought back answered in 2 m · answer below (was answered in 2 m 05 s · answer below). failed after 40 s already held and is unchanged. Docs only, two lines in one file.

Why

The row's words come from askState() in web/src/components/SessionBody.tsx: answered in and failed after format the time with dur(), and the running state's ticking time is <Since> (web/src/components/bits.tsx), which formats with durCoarse(). Both follow the one duration grammar in web/src/lib/time.ts, which shows seconds only in the first minute, so 80 s reads "1 m" and 125 s reads "2 m". The doc's examples carried seconds the grammar already left out when they were written (0.6.0).

Same kind of fix as #274, which corrects the format.duration examples in docs/theme-authoring.md; the two change different files and merge cleanly together.

Not changed here, to keep this to one doc: two code comments carry the same old form, web/src/pages/FeedPage.tsx ("answered in 2 m 05 s · answer relayed here"; web/src/lib/turns.test.ts expects "answered in 2 m · answer relayed here") and web/src/lib/agents.ts ("Quiet for 12 m 04 s", built with dur()). The CHANGELOG.md entry for the release that added the row is history and stays as written.

Original proof (before the v0.8.18 refresh)

The real dur() and durCoarse() from web/src/lib/time.ts on origin/main, run with node --experimental-strip-types for the doc's three times:

dur(125000)  answered/failed, 2 m 05 s -> "2 m"
dur(40000)   failed after 40 s -> "40 s"
durCoarse(80000)  Since, running 1 m 20 s -> "1 m"

npm run lint (Biome; it does not check Markdown, and the change touches no file it checks):

Checked 983 files in 200ms. No fixes applied.
Found 135 warnings.
Found 1 info.

Exit 0; the warnings are in files this change does not touch.

npm run typecheck and npm test were not run: no source, test or config file changes. No changelog line: a doc example fix is nothing a person running the GUI would notice.

Checklist

  • Every commit is signed off (git commit -s): the DCO is the only paperwork.
  • npm run typecheck && npm run lint && npm test pass; npm run test:e2e for a UI change. (npm run lint passes; typecheck and tests not run, docs only.)
  • New source files start with // SPDX-License-Identifier: Apache-2.0. (No new files.)
  • No secret, real address, hostname or home path in code, fixtures or screenshots (screenshots come from --demo).
  • A change to shared/* names the wire-contract change in the description. (No shared/* change.)
  • A line under Unreleased in CHANGELOG.md if a person would notice. (Docs example only.)

…them

Symptom: docs/orchestration.md says the ask row reads "running 1 m 20 s",
then "answered in 2 m 05 s", and with the answer brought back "answered
in 2 m 05 s · answer below". The GUI shows "running 1 m" and "answered in
2 m" for those times.

Cause: the row's words come from askState() in
web/src/components/SessionBody.tsx: "answered in" and "failed after" use
dur(), and the running state's ticking time is <Since>, which uses
durCoarse() (web/src/lib/time.ts). That grammar shows seconds only in the
first minute, so 80 s reads "1 m" and 125 s reads "2 m". The examples
were written with seconds the grammar already left out.

Fix: give the examples what dur() and durCoarse() return. "failed after
40 s" already holds. Docs only.

Signed-off-by: Connor Burgess <connorburgesscodes@gmail.com>
Signed-off-by: Connor Burgess <connorburgesscodes@gmail.com>
@connorburgess

Copy link
Copy Markdown
Contributor Author

The orchestration ask-row duration example correction still applies to SessionPipe GUI v0.8.18. Merged current main (d16a2c01) into this branch; the refreshed head is 427deca7. The affected files have not changed upstream, and the original change is preserved.

Validation on this head, macOS / Node 22.23.2:

  • npm run typecheck, npm run lint, and npm run build passed. Lint has the same 135 warnings and one informational diagnostic as current main, with no errors.
  • npx vitest run --maxWorkers=2 web/src/lib/format.test.ts: 41 tests passed.

GitHub CI run 47453785592 for head 427deca7 passed: typecheck · lint · unit · build, all three desktop e2e shards, e2e (phone · duo), e2e (control channel), and the aggregate typecheck · lint · unit · build · e2e gate.

Independently evaluated the documented duration examples against the current implementation; every value matches.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant