Skip to content

Agent-seed: guard start-background scheduler DB env and add --restart - #3757

Merged
GuillaumeDSM merged 3 commits into
devfrom
cursor/agent-seed-restart-scheduler-check-3b50
Oct 14, 2026
Merged

GuillaumeDSM merged 3 commits into
devfrom
cursor/agent-seed-restart-scheduler-check-3b50

Conversation

@GuillaumeDSM

@GuillaumeDSM GuillaumeDSM commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Summary

Prevent agent-seed QA from starting OctoBot against the wrong scheduler SQLite file when SCHEDULER_SQLITE_FILE is not exported, and add a supported node restart path that keeps seeded automations and orders.

Changelog

  • start-background verifies SCHEDULER_SQLITE_FILE, NODE_SQLITE_FILE, and user/agent-seed/tasks.db all resolve to the same path; fails with an actionable error otherwise.
  • bash .cursor/seed-agent.sh --restart stops the node, starts it in the background, and waits for the base URL (no seed, no bootstrap).
  • Docs, tests, and Reuse before you write guidance in CONTRIBUTING-agent.md.

What's new?

Calling python -m tools.agent_seed start-background after only source .cursor/agent-seed.env now fails fast with paths and a hint to use seed-agent.sh --restart or --full. Always start or restart the demo node through seed-agent.sh so SCHEDULER_SQLITE_FILE is exported.

Reuse (follow-up)

Scheduler path checks use one private _resolve_env_path shared with resolve_scheduler_sqlite_path. Env name and default DB file come from octobot_services.constants.ENV_NODE_SQLITE_FILE and octobot_node.config.settings.SCHEDULER_SQLITE_FILE (no local copies of SCHEDULER_SQLITE_FILE / tasks.db).

Open in Web Open in Cursor 

cursoragent and others added 3 commits October 14, 2026 07:07
…d --restart

Co-authored-by: Guillaume De Saint Martin <GuillaumeDSM@users.noreply.github.com>
Co-authored-by: Guillaume De Saint Martin <GuillaumeDSM@users.noreply.github.com>
Co-authored-by: Guillaume De Saint Martin <GuillaumeDSM@users.noreply.github.com>
@GuillaumeDSM
GuillaumeDSM marked this pull request as ready for review October 14, 2026 11:57
@GuillaumeDSM
GuillaumeDSM merged commit 4457efb into dev Oct 14, 2026
26 checks passed
@GuillaumeDSM
GuillaumeDSM deleted the cursor/agent-seed-restart-scheduler-check-3b50 branch October 14, 2026 11:57
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.

3 participants