Skip to content

feat(sessions_send): add spawnIfInactive parameter#82

Closed
dgarson wants to merge 10 commits into
dgarson/forkfrom
feat/sessions-send-spawn-if-inactive
Closed

feat(sessions_send): add spawnIfInactive parameter#82
dgarson wants to merge 10 commits into
dgarson/forkfrom
feat/sessions-send-spawn-if-inactive

Conversation

@dgarson

@dgarson dgarson commented Feb 23, 2026

Copy link
Copy Markdown
Owner

Adds the spawnIfInactive parameter to the sessions_send tool schema.\n\nThis allows callers to automatically spawn a new sub-agent if the target session is not active, instead of failing.

- Replace minimal Pi note with comprehensive portability table (node:sqlite,
  Node version, architecture, WAL/filesystem considerations)
- Add recommended database path section for Pi (/data/openclaw/workq/workq.db)
  with config example and directory setup commands
- Add 5-step probe/verification command sequence for new host deployments
- Fix hardcoded local path in Installation section to use relative repo path
Enhances workq extension documentation for Claude Code agents with:

- Detailed breakdown of all 8 queue tools with parameters and examples
- Expected call order workflow (claim -> status/files -> in-review -> done)
- Status state machine diagram and valid transitions
- Practical examples covering happy path, conflicts, blocked tasks, queries
- Common pitfalls and integration notes for platform squad agents
- File conflict detection guidance

Provides agents with actionable reference for coordinating work across
the multi-agent fleet.
The previous test used vi.fn() to mock the WorkqDatabase class, but this
doesn't work properly when the actual code uses 'new WorkqDatabase()'.

Changed to use a proper class mock with vi.hoisted() to ensure the mock
functions are available when the vi.mock() factory runs.

All 41 tests now pass.
…tructure

Agent: oscar
Original branch: feat/workq-extension
Working on: workq-extension
Reason: restructuring workspace so git repos live at git/{reponame}/
All untracked config + code changes captured here.
@dgarson dgarson closed this Feb 23, 2026
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