Skip to content

The PC after the move: agent-only tray, a refused second Curatarr, the runbook - #206

Merged
Randomname653 merged 1 commit into
mainfrom
feat/agent-only-cutover
Oct 23, 2026
Merged

Randomname653 merged 1 commit into
mainfrom
feat/agent-only-cutover

Conversation

@Randomname653

Copy link
Copy Markdown
Owner

Step 6 of the NAS move.

PC_AGENT_ONLY. Once Curatarr runs on the NAS, the PC's tray runs only the agent (tray_app._agent_only).

  • No server, database or scheduler.
  • "Open Curatarr" opens PC_AGENT_NOTIFY_URL (the NAS).
  • Logoff, shutdown and Quit agent send the goodbye first, through the existing end-session hook.
  • It warns when this PC's Ollama doesn't answer, since the NAS needs it.
  • The branch comes before the port check.

src/main.py lifespan refuses to start with PC_AGENT_ONLY set, before the Syncthing guard or the database open. A start.bat run out of habit on that PC would otherwise sync the same Plex and arrs twice.

docs/NAS_MOVE.md is generic, with placeholders and no real addresses.

  • Before: record the embedding weights; set the NAS Ollama server env from --suggest; put the PC's Ollama on the LAN; add firewall rules for the NAS only.
  • Move:
    • a clean stop, plus a kept copy of data/ and .env
    • data/ and .env into the volume (chown 568)
    • the .env keys to change, and the PC's agent-only .env
    • build_models --host main, then --check, which must report matching embedding weights
    • log and chat checks with and without the PC, then the proxy
  • Rollback.

Tests: new tests/test_agent_only.py (12 checks). It boots the real lifespan with the flag set and expects SystemExit before anything opens. It also checks the agent-only branch (no uvicorn or DB, goodbye before stop, opens the NAS, Ollama warning) and the runbook's order and placeholders. The full battery is green (227/227).

🤖 Generated with Claude Code

…e runbook

Step 6 of the NAS move.

- PC_AGENT_ONLY (config): once Curatarr runs on the NAS, the PC's tray runs
  only the agent (tray_app._agent_only): no server, no database, no
  scheduler. "Open Curatarr" opens PC_AGENT_NOTIFY_URL; logoff, shutdown
  and Quit announce the goodbye first through the existing end-session
  hook. It warns when this PC's Ollama does not answer, because the NAS
  needs it. The branch comes before the port check.
- src/main.py lifespan refuses to start with PC_AGENT_ONLY set, before
  the Syncthing guard or the database open. A start.bat run out of habit
  would otherwise sync the same Plex and arrs twice.
- docs/NAS_MOVE.md, generic and with no real addresses:
  - before the move: record the embedding weights, the NAS Ollama server
    env from --suggest, the PC's Ollama on the LAN, firewall rules for the
    NAS only
  - the move: a clean stop, a kept copy, data/ and .env into the volume,
    the .env keys to change, the PC's agent-only .env,
    build_models --host main and --check (must say the embedding weights
    match), log and chat checks with and without the PC, the proxy
  - rollback

New tests/test_agent_only.py (12 checks).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Randomname653
Randomname653 merged commit 7f38822 into main Oct 23, 2026
9 of 10 checks passed
@Randomname653
Randomname653 deleted the feat/agent-only-cutover branch October 23, 2026 13:46
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