Skip to content

feat: --detach flag for fire-and-forget task launching#11

Open
jimmy-claw wants to merge 1 commit into
masterfrom
jimmy/detach-flag
Open

feat: --detach flag for fire-and-forget task launching#11
jimmy-claw wants to merge 1 commit into
masterfrom
jimmy/detach-flag

Conversation

@jimmy-claw

Copy link
Copy Markdown
Owner

Summary

  • Adds --detach / -d flag to openclaw-agent start command
  • In detach mode: generates task ID client-side, fires SSH launch command without waiting for output, returns immediately
  • status command resolves PID from remote pid file on first check for detached tasks
  • Fixes SSH timeout issue on hosts like Pi5 (~10s timeout) where normal start blocks too long

Test plan

  • cargo build --release compiles
  • cargo test passes
  • openclaw-agent start --help shows -d, --detach flag
  • Manual test: openclaw-agent start --executor crib --detach --prompt "echo hello"

Closes #10

🤖 Generated with Claude Code

On hosts with short SSH timeouts (Pi5 ~10s), the start command can
timeout before returning the task ID. The --detach/-d flag generates the
task ID client-side, fires the SSH launch command without waiting for
output, and returns immediately. The status command resolves the PID
from the remote pid file on first check.

Closes #10

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

feat: --detach flag for fire-and-forget task launching

1 participant