Adds /owt-done (close Linear issues after merge, then owt done) and /linear-sync (progress comment and status, no cleanup), linked into omo as ~/.omo/agent/prompts.
1.9 KiB
description, argument-hint, requires-arguments
| description | argument-hint | requires-arguments |
|---|---|---|
| Finish this owt workspace - close its Linear issues, then remove the worktree and close the window | [notes for the Linear comment] | false |
Close out the owt workspace this session is running in. Do the steps in order.
-
Run
owt done --check. It printskey=valuelines: workspace, path, branch, base, uncommitted, merged, pr_state, pr_url, remote_branch. It exits 1 when finishing would lose work. If it says this is not an owt workspace, stop and tell me. -
Work out which Linear issues this workspace covered: the keys in the branch name (
feature/pra-107-108-...means PRA-107 and PRA-108) plus any issues named earlier in this session. Read each with the Linear tools. If you find none, ask me which issues, if any, to close. -
If the check exited 1, list exactly what would be lost (uncommitted files with
git status --short, commits not on the base branch withgit log --oneline <base>..HEAD, and the PR state), then ask me whether to discard it. Do not continue without an explicit yes. If I say no, stop here and change nothing. -
Update Linear for each issue:
- If
merged=yes: comment with a short summary of what shipped, the PR link (pr_url), and the branch name, then move the issue to Done. - If I approved discarding unmerged work: comment that the workspace was discarded without merging and why, and leave the status as it is unless I say otherwise. Include these notes from me in the comment, if any: $ARGUMENTS
- If
-
Give me a short final summary: issues updated and their new status, PR link, and what cleanup will remove.
-
As your very last action, run
owt done --detach, adding--forceonly if I approved discarding work in step 3. About 5 seconds later it deletes the merged remote branch, removes the worktree and local branch, and closes this tmux window, which ends this session. Run nothing after it.