fix: disable Streamlit dev shortcuts to prevent Ctrl+C triggering Clear Caches on Windows#309
Merged
lsdefine merged 1 commit intoMay 9, 2026
Conversation
…ar Caches on Windows
AspasZhang
force-pushed
the
fix/disable-streamlit-cache-shortcut
branch
from
May 9, 2026 02:50
c351e41 to
31047f1
Compare
FeiNiaoBF
pushed a commit
to FeiNiaoBF/GenericAgent
that referenced
this pull request
May 11, 2026
…ar Caches on Windows (lsdefine#309)
bendusy
pushed a commit
to bendusy/GenericAgent
that referenced
this pull request
May 14, 2026
…ar Caches on Windows (lsdefine#309)
RocketLi
pushed a commit
to RocketLi/GenericAgent
that referenced
this pull request
May 18, 2026
…ar Caches on Windows (lsdefine#309)
lsdefine
pushed a commit
that referenced
this pull request
Jul 23, 2026
…ar Caches on Windows (#309)
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.
Problem
On Windows, pressing Ctrl+C in the pywebview window triggers Streamlit's built-in 'C' keyboard shortcut, which pops up a 'Clear caches' confirmation dialog instead of copying text.
Fix
Add
--client.toolbarMode viewerto the Streamlit launch command inlaunch.pyw. This disables all dev-mode keyboard shortcuts (including the 'C' = Clear Cache shortcut) without affecting any app functionality.Changes
launch.pywline 21: added"--client.toolbarMode", "viewer"to the streamlit startup command