Repository navigation
docs: the ask row examples in orchestration.md read as the GUI shows them - #275
Open
connorburgess wants to merge 2 commits into
Open
connorburgess wants to merge 2 commits into
connorburgess wants to merge 2 commits into
Conversation
…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>
Contributor
Author
|
The orchestration ask-row duration example correction still applies to SessionPipe GUI v0.8.18. Merged current Validation on this head, macOS / Node 22.23.2:
GitHub CI run 47453785592 for head Independently evaluated the documented duration examples against the current implementation; every value matches. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated against v0.8.18 / main
d16a2c01on 2026-12-05. Current validation and refresh details.What
docs/orchestration.mdnow 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()inweb/src/components/SessionBody.tsx: answered in and failed after format the time withdur(), and the running state's ticking time is<Since>(web/src/components/bits.tsx), which formats withdurCoarse(). Both follow the one duration grammar inweb/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.durationexamples indocs/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.tsexpects "answered in 2 m · answer relayed here") andweb/src/lib/agents.ts("Quiet for 12 m 04 s", built withdur()). TheCHANGELOG.mdentry for the release that added the row is history and stays as written.Original proof (before the v0.8.18 refresh)
The real
dur()anddurCoarse()fromweb/src/lib/time.tson origin/main, run withnode --experimental-strip-typesfor the doc's three times:npm run lint(Biome; it does not check Markdown, and the change touches no file it checks):Exit 0; the warnings are in files this change does not touch.
npm run typecheckandnpm testwere 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
git commit -s): the DCO is the only paperwork.npm run typecheck && npm run lint && npm testpass;npm run test:e2efor a UI change. (npm run lintpasses; typecheck and tests not run, docs only.)// SPDX-License-Identifier: Apache-2.0. (No new files.)--demo).shared/*names the wire-contract change in the description. (Noshared/*change.)CHANGELOG.mdif a person would notice. (Docs example only.)