Retry
cmd/crewship/cmd_retry.go looks up a prior run, fetches its first user prompt from chat messages, and starts a new run against the same agent. Iteration workflow:
/api/v1/runs?limit=100 list and filters client-side — if the run is older than the most recent 100, the command fails with run <id> not found in last 100 runs. Targeted re-runs are the intended use case; for archival lookup, fetch the chat ID some other way and pass --new-prompt.
crewship retry <run-id>
Examples
Common errors
run <id> not found in last 100 runs— run is older than the recent window; pass a--new-promptand use a different command.run <id> has no chat_id; pass --new-prompt to retry— the original run never produced a chat (rare; e.g. pre-chat trace runs).could not recover original prompt for run <id>; pass --new-prompt— the chat exists but no user-role message was found.--continue requires the original run to have a chat_id— combine--continuewith--new-promptagainst a runnable chat instead.
See also
crewship history— find the run-id to retry.crewship copy-prompt <run-id>— recover the prompt without starting a new run.crewship resume <run-id>— continue the existing chat interactively.