Repository navigation
Conversation
ttyd's frontend warns before the tab is reloaded or closed, because leaving would end the command. Here tmux keeps Claude and the shells running and the panel re-attaches on reopen, so the prompt only gets in the way. Start ttyd with --client-option disableLeaveAlert=true and check for it in the production run test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
In Chrome, reloading or closing the terminal tab now asks "Reload site? Changes that you made may not be saved." (or "Leave site?"). The prompt comes from ttyd's frontend. While the terminal is connected, it warns that leaving ends the running command.
In this add-on that isn't true. ttyd attaches every connection to the persistent tmux session, so Claude and any shells keep running when the tab closes, and reopening the panel picks up where you left off. The prompt only gets in the way.
run.sh: ttyd starts with--client-option disableLeaveAlert=true, a client option ttyd already providestests/test-production-run.sh: checks the option stays in placeChrome only shows the prompt after you have typed or clicked in the page, which may be why it hasn't been noticed before.
Tested
tests/run-tests.shpasses in an Alpine 3.24 container with ttyd 1.7.7🤖 Generated with Claude Code