Skip to content

feat: dedicated hook panel#97

Merged
neumie merged 2 commits intomainfrom
feat/hook-panel
Mar 31, 2026
Merged

feat: dedicated hook panel#97
neumie merged 2 commits intomainfrom
feat/hook-panel

Conversation

@neumie
Copy link
Copy Markdown
Contributor

@neumie neumie commented Mar 31, 2026

Summary

  • Move hook terminals from the layout tree into a dedicated toggleable panel below the terminal area (same pattern as the service panel)
  • Auto-opens when hooks fire, auto-closes when all hooks succeed, stays open on failures
  • Track hook command exit codes via OSC title sequence so terminals stay interactive while status updates correctly
  • UX: trash icon for dismiss, refresh icon for rerun (always visible, dimmed while running), chevron-down for hide, "Clear finished" batch action
  • Hooks group in sidebar defaults to collapsed; sidebar no longer auto-expands when hooks appear

Test plan

  • Add an on_worktree_create hook in settings, create a quick worktree — hook panel should auto-open
  • When hook command finishes, status dot should update (green=success, red=fail)
  • On success, panel auto-closes; on failure, panel stays open
  • Rerun button replays the hook command in the same interactive terminal
  • Dismiss (trash icon) removes individual hooks; "Clear finished" removes all completed
  • Hide (chevron-down) collapses panel without destroying hooks
  • Sidebar hook group is collapsed by default for new projects

🤖 Generated with Claude Code

neumie and others added 2 commits March 31, 2026 16:19
Move hook terminals from the layout tree into a dedicated toggleable
panel (like the service panel). Hooks now show with status dots, rerun
and dismiss buttons, and auto-open when hooks fire / auto-close when
all succeed. Track hook command exit codes via OSC title sequence so
the terminal stays interactive while status updates correctly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@neumie neumie merged commit 47517e0 into main Mar 31, 2026
8 checks passed
@neumie neumie deleted the feat/hook-panel branch March 31, 2026 14:30
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