Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

Merge remote-tracking branch 'origin/main' into next/issue-1521

Adam Eivy34bc5139bb6e
diff --cc .changelog/NEXT.md
index 1a21304e0b,9e8d5572a9..c4916cc1aa
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@@ -35,11 -39,8 +39,12 @@@
- **[issue-1510] Series Autopilot now catches whole-book continuity problems at the cheap beat stage, before it generates full scripts.** The autopilot reviewed continuity at two altitudes — the cross-volume synopsis pass (before beats exist) and the full-text editorial pass (after every issue's script is written, the most expensive stage) — leaving a gap in between. So structural defects spanning the whole book (a cliffhanger raised in one issue and never resolved, a finale that drifts onto a new subplot instead of landing the arc's intended ending, a promised through-line that never pays off, an event staged as the "first" in two different issues, a broken volume-to-volume hand-off) were only caught *after* all the scripts already existed — or not until a human read it. The autopilot now runs a **whole-manuscript beat-continuity pass over every issue's beat sheet, between beat generation and script generation**. Blocking findings are auto-resolved by rewriting just the affected issues' beats and re-checking (bounded, then it pauses for review with the residual findings), so the fix lands before any script is generated. The full-text editorial pass is unchanged and still catches what only the verbatim script can show (pacing, repeated/looping passages, dialogue craft). A new **Beat continuity rounds** control in the autopilot Options tunes how many auto-resolve rounds it attempts (0 skips the pass), saved as a per-install default like the existing Arc-verify and Editorial round knobs.
- **[issue-1349] Series Autopilot now refreshes its scene segmentation before running the scene-based editorial checks, so those checks read the current draft.** The autopilot's scene-aware editorial checks (scene balance, POV justification, cliffhangers, arc transitions) read a cached "reverse outline" of the manuscript's scenes — but the autopilot's own editorial-completeness pass can edit the manuscript earlier in the same run, leaving that segmentation stale. The autopilot now regenerates the reverse outline between the completeness pass and the scene-based checks, so the checks always see the freshly edited draft instead of a pre-edit snapshot. It only spends effort when there's something to do: the refresh is skipped entirely when no scene-based check is enabled, and when the stored segmentation is already current — so a run that doesn't need it costs nothing extra.
+ - **[issue-1514] A per-stage provider pin now wins over Series Autopilot's run provider on *every* stage, not just script verification.** Pinning a single pipeline stage to a specific provider on the Prompts page already stuck for the script-verification gate, but the autopilot still threaded its run-wide provider as a hard *override* into every other stage it drives — arc generation and verification, episode seeding, prose/comic-script text stages, volume beats, the reverse-outline refresh, the editorial checks and their auto-fixes, and manuscript completeness — so a pin on any of those was silently ignored mid-run. The autopilot now passes its run provider as a soft *default* across all of them: a pinned stage keeps running on its chosen provider, while unpinned stages still follow the run's provider. As a deliberate consequence, when the run's provider is unavailable an unpinned stage now falls through to the active provider instead of failing the run with a "provider unavailable" error. Manual "regenerate with provider X" buttons are unchanged — an explicit per-call pick still wins everywhere.
+## Providers
+
+- **[issue-1521] Claude Code on AWS Bedrock now works with a plain Claude provider — no more "model identifier is invalid" failures.** On a machine configured for Claude Code on Bedrock (`CLAUDE_CODE_USE_BEDROCK` set), pointing a standard Claude Code provider at a bare model id like `claude-opus-4-8` was rejected by Bedrock, which wants the region-prefixed form (`global.anthropic.claude-opus-4-8`) — this had broken Series Autopilot and other pipeline runs on a Bedrock box. PortOS now auto-corrects a bare Claude model id to its Bedrock form just-in-time when launching the CLI/TUI runner (preferring your `ANTHROPIC_DEFAULT_*_MODEL` setting when present, otherwise prefixing the id), so the same provider config works whether or not the box is in Bedrock mode. Your stored configuration is left unchanged (a one-time notice explains the correction), and already-prefixed ids and non-Claude providers are untouched.
+
## Fixed
- **Comic-page proof/final render buttons no longer get stuck "loading"/disabled on already-rendered pages.** Navigating into an issue's Comic tab — for example right after kicking off an unrelated render like a volume cover — could leave a page's **Proof**/**Final** buttons spinning and disabled even though that page's render finished long ago. The in-flight check re-armed an "unknown" status on every navigation and only cleared it once a job-status fetch (or a 5-second grace timer) resolved, ignoring that the slot already carried a rendered image. It now treats a slot that already has a rendered filename as settled immediately (the server clears the filename when a re-render is queued, so a present filename is an authoritative "done" signal), so the buttons are clickable right away and you can queue the next render without waiting. (`client/src/hooks/useSlotInFlight.js`)