Skip to content

1.0.53

Choose a tag to compare

@morapelker morapelker released this 04 Mar 19:33
· 2787 commits to main since this release

What's Changed

Defer title generation for /using-superpowers hook prompts (#100)

  • Deferred title generation: When a session's first prompt is the /using-superpowers skill hook, title generation is now deferred until the next real user message. This prevents generating meaningless or broken titles from system hook prompts that don't reflect the user's actual intent.
  • New titleDeferred state flag: Added titleDeferred: boolean to ClaudeSessionState to track when title generation has been postponed. On initial session materialization, if the prompt starts with /using-superpowers, the flag is set to true instead of firing title generation immediately. On subsequent prompts, if the flag is set and the prompt is a real user message, deferred title generation fires automatically.
  • Code formatting cleanup: Minor formatting adjustments (collapsed multi-line function signatures, import reformatting) applied by the formatter across several methods in claude-code-implementer.ts.
  • Test updates: Updated claude-code-title-integration.test.ts to include the new titleDeferred field in mock session state and reformatted assertion lines.

fix: clear file viewer when creating or switching sessions (#99)

  • Clears the file viewer when creating a new session — after a new session is created via createSession, the useFileViewerStore is reset (setActiveFile(null) + clearActiveDiff()) so the session panel takes focus in MainPane instead of showing a stale file or diff view.
  • Clears the file viewer when switching sessions — when setActiveSession is called with a non-null session ID, the file viewer is similarly cleared so the newly selected session is immediately visible.
  • Both changes use dynamic import('./useFileViewerStore') to avoid circular dependency issues between stores.

fix: make wildcard * match slashes in bash permission patterns (#98)

  • Updated wildcard matching in CommandFilterService to make * match any character including / when used in bash permission patterns (e.g. bash: cd *, bash: npm *)
  • Previously, * was converted to [^/]* for all pattern types, which caused bash patterns like bash: cd * to fail matching commands with path arguments (e.g. bash: cd /Users/foo/bar)
  • The [^/]* (no-slash) behavior is preserved for file-path patterns (edit:, read:, write:) where path-segment matching is the desired semantics
  • ** continues to match any sequence including / for all pattern types