assist v0.371
Session restarts, Jira consolidation, and sub-task editing
Session restarts were the biggest thread. Cards gained a restart control (RestartButton, backed by a reworked restartSession/respawnSession), a session can now restart from its persisted prompt rather than a blank slate (respawnPlan carrying the original prompt through), and restarting now kills the whole process tree first (handlePtyExit) so a lingering child can’t hold the old session alive while the new one spins up.
I pulled the scattered Jira commands together into a single /jira command, retiring the separate associate-jira and update-jira commands. Backlog items can now be searched by Jira key, and a phase-1 run authors a /jira started step into its prompt so an item’s Jira issue gets moved to In Progress automatically when work actually begins.
Sub-tasks got fuller editing. Beyond adding them, I can now edit and remove sub-tasks (editSubtask, deleteSubtask, resolveSubtaskIndex), titles are capped at 50 characters, and cards show a count of incomplete sub-tasks so an item’s remaining work is visible at a glance. Backlog descriptions and sub-tasks also render markdown now, with a shared markdownSx style, so --desc newlines and formatting survive into the web view.
The status line learned to show the current git branch (readGitBranch), with a stable-width emoji so the line doesn’t jitter as the branch changes, plus a herb emoji tweak. Backlog search now also matches on item number, there’s a backlog add-activity command for manually attaching activity, a web action to rewind an item back to its Review phase (rewindItemToPhase, withReviewPhase), and auto-branching for PR-required stories so a story that needs a PR gets its branch created up front (ensureStoryBranch). Rounding it out, the comment gate now also applies inside #-comment files like shell scripts, and PR buttons show on a card immediately after prs raise instead of waiting for a refresh.