Repository navigation
docs: map the wake-ups API, archive cancel, and /loop errors in the pstack adapter - #163
Conversation
…rs in the pstack adapter
…atch-wakeup-api # Conflicts: # docs/fork/pstack-adapter.md
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
3100 gate for #163: PASS Server Wake-ups API (#134). A root chat called
Archive cancel (#133). Archiving the first chat (204) left A #134 has no UI, so there are no screenshots. Both chats were archived, all three wake-ups ended canceled, and |
Merge evidence for head
|
Part of #13 and #8.
Updates
docs/fork/pstack-adapter.mdfor #133 (cancel wake-ups on archive and reject invalid/loopcommands) and #134 (manage a chat's wake-ups through the API). The page now says what forkmainat6b1757fb92does.GET /api/v2/chats/fork/{chat}/wakeups, oldest first with finished ones, andPATCH /api/v2/chats/fork/{chat}/wakeups/{wakeup}withpaused,active, orcanceled. It covers the permission check, the same-status no-op, the 409 and 400 errors, thepaused_by_userandcanceled_by_userreasons, and how a resume picks the next run. A paused wake-up now runs again after a resume, and a canceled one leaves the limit of 10. No tool or page changes a wake-up, so the model still setsmax_runsorexpires_in_seconds, or asks the user to cancel. The/loopand watchers row says the user can pause, resume, or cancel through the API./loop(feat(coderd): cancel wake-ups on archive and reject invalid /loop commands #133). With the experiment, archiving a chat cancels the active and paused wake-ups of the whole family, and unarchiving doesn't resume them. Without the experiment, the old stop at the next run still applies. An invalid/loopfails with status 400,Invalid /loop command., and the reason in the detail.fork_wakeup_controls.go, the archive cancel infork_family_lock.go, and the/looperror mapping. The "no wake-up route" and "no resume or removal" entries are gone. Moved ranges inexp_chats.go,fork_wakeups.go,fork_loop_command.go,fork_family_lock.go, andchat_wakeups.sqlare re-pinned. The header names6b1757fb92.Validation
markdownlint-cli20.16.0 andmarkdown-table-formatter1.6.1 on the page: 0 errors, no changes. The added lines have no em dashes, en dashes, spaced double hyphens, or semicolons outside .v2.39.1-devel+4b0b4a0706with the daily 6 experiments andfork-chat-wakeups: pass for list, pause, same-status no-op, resume, cancel, the 409 after cancel, the 400 for a bad status, both/loop400s, the archive cancel with reasonarchived, and the 400 in an archived chat (gate comment).