feat: add Pop stash button to Stash Details Panel#1
Open
peterjthomson wants to merge 2 commits intokaurifund:masterfrom
Open
feat: add Pop stash button to Stash Details Panel#1peterjthomson wants to merge 2 commits intokaurifund:masterfrom
peterjthomson wants to merge 2 commits intokaurifund:masterfrom
Conversation
- Add handlePop function that applies stash and removes it from list - Make Pop the primary CTA (most common workflow) - Add tooltips to clarify each button's behavior: - Pop: Apply and remove stash - Apply: Apply but keep stash - Drop: Remove without applying
- Add getClaudeCodeAgentTaskHint() function to read session data from
~/.claude/projects/{encoded-path}/*.jsonl files
- Extract the first user message as the task hint, stripping system tags
- Update getEnhancedWorktrees to call the function for 'claude' agents
- Update WorktreeDetailPanel to display hints for both Cursor and Claude Code
Claude Code stores sessions as JSONL files with user messages containing
the original task. The path is encoded by replacing / with - in the folder name.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Pop button to the Stash Details Panel, which applies the stash and removes it from the list in one action.
Changes
handlePopfunction that callspopStash()API (already available in backend)Before / After
The
popStashAPI was already implemented in the backend but wasn't exposed in the UI.