-
-
Notifications
You must be signed in to change notification settings - Fork 807
implement more OSC 16162 for fish, pwsh, and bash #2462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
e8bc012
implement osc 16162;M for bash
sawka 85ddfb0
implement more osc 16162 for fish. A, C, D, M
sawka 4930a81
implement OSC 16162;M for pwsh
sawka 481040c
fix UNC parsing... look for /\\ and then remove leading slash. keep …
sawka 7e689db
add bash preexec library (v0.6.0), w/ copyright + license
sawka 4023833
add shell + version to terminal block desc
sawka e30633e
write bash precmd to shell integration directory, load it in our bash…
sawka 449091a
small change to guard against extdebug
sawka c4b5b22
add ready state, change "on" to "connected to" for remote shells.
sawka 761c815
clear rtinfo if we stop a block controller
sawka 65d0dd2
add new shell:integration flag... set to true for bash, zsh, and fish…
sawka d76270a
update name to shell:hascurcwd instead of cmd to be more consistent. …
sawka 4f88879
fix weird stdout/stderr race condition detectting the connserver vers…
sawka f2d3a4a
surface currently running command if we know it.
sawka db81907
add last_command to output when the AI requests scrollback from terminal
sawka 87f0db6
fix name case
sawka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion | 🟠 Major
Add defensive nil checks for robustness.
While
MakeBlockShortDescvalidates inputs before calling this helper,makeTerminalBlockDescis a standalone function that could be invoked from other contexts within the package. Adding nil checks would prevent potential panics.Apply this diff to add defensive checks:
func makeTerminalBlockDesc(block *waveobj.Block) string { + if block == nil || block.Meta == nil { + return "terminal block (metadata unavailable)" + } connection, hasConnection := block.Meta["connection"].(string) cwd, hasCwd := block.Meta["cmd:cwd"].(string)📝 Committable suggestion
🤖 Prompt for AI Agents