Skip to content

feat: cherry-pick reference features — tool decay, PID liveness, stable collapsed width#1

Open
nguyenvanduocit wants to merge 2 commits into
mainfrom
feat/reference-sync-apr09
Open

feat: cherry-pick reference features — tool decay, PID liveness, stable collapsed width#1
nguyenvanduocit wants to merge 2 commits into
mainfrom
feat/reference-sync-apr09

Conversation

@nguyenvanduocit

Copy link
Copy Markdown
Owner

Summary

  • Tool status decay: Show tool description in collapsed bar with 2s fade-out timer (DecayState) so text doesn't vanish instantly when tool completes
  • PID liveness check: Every 30s verify session processes are alive, mark dead ones as exited
  • Click session card → jump terminal: Wrap session cards in Button for quick terminal activation
  • Stale subagent cleanup: 3-minute timeout for subagents, auto-clear prompt text
  • Dynamic permission suggestions: Parse permissionSuggestions from hook events
  • Hook exec PID fix: Use exec in bridge for correct getppid() reporting
  • Stable collapsed notch width: Remove status-dependent extra padding that caused width jitter on state changes
  • Remove smartSuppress setting, simplify TerminalActivator/TerminalVisibilityDetector
  • Add ToolDescriptionTests (15 test cases)

Test plan

  • Collapsed bar shows tool text without width jitter when sending messages
  • Tool text fades out ~2s after tool completes (not instant)
  • Dead sessions marked as exited after ~30s
  • Clicking session card activates the correct terminal
  • swift build && swift test passes

🤖 Generated with Claude Code

nguyenvanduocit and others added 2 commits April 8, 2026 14:33
…ok events

Sessions are now created exclusively when the bridge sends hook events via
Unix socket. Removes filesystem scanning (~/.claude/projects/*.jsonl),
FSEventStream watcher, transcript parsing, process-by-CWD fallback, and
session save/restore to disk — eliminating ~400 lines of startup complexity.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…s, stale subagent cleanup, stable collapsed width

Cherry-pick and adapt 7 features from upstream/reference projects (T-011):
- Structured tool description display with 2s decay timer (DecayState)
- PID liveness check every 30s, mark dead sessions as exited
- Click session card to jump to terminal (Button wrap)
- Stale subagent cleanup (3min timeout + prompt clear)
- Dynamic permission suggestions parsing
- Hook exec PID fix (exec replaces bash for correct getppid)
- Stable collapsed notch width — remove status-dependent extra padding

Also: remove smartSuppress setting, simplify TerminalActivator/TerminalVisibilityDetector,
add ToolDescriptionTests, update CLAUDE.md docs.

Co-Authored-By: Claude Opus 4.6 (1M context) <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.

1 participant