Skip to content

fix: disable Streamlit dev shortcuts to prevent Ctrl+C triggering Clear Caches on Windows#309

Merged
lsdefine merged 1 commit into
lsdefine:mainfrom
AspasZhang:fix/disable-streamlit-cache-shortcut
May 9, 2026
Merged

fix: disable Streamlit dev shortcuts to prevent Ctrl+C triggering Clear Caches on Windows#309
lsdefine merged 1 commit into
lsdefine:mainfrom
AspasZhang:fix/disable-streamlit-cache-shortcut

Conversation

@AspasZhang

Copy link
Copy Markdown
Contributor

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 viewer to the Streamlit launch command in launch.pyw. This disables all dev-mode keyboard shortcuts (including the 'C' = Clear Cache shortcut) without affecting any app functionality.

Changes

  • launch.pyw line 21: added "--client.toolbarMode", "viewer" to the streamlit startup command

@AspasZhang
AspasZhang force-pushed the fix/disable-streamlit-cache-shortcut branch from c351e41 to 31047f1 Compare May 9, 2026 02:50
@lsdefine
lsdefine merged commit 268ceab into lsdefine:main May 9, 2026
FeiNiaoBF pushed a commit to FeiNiaoBF/GenericAgent that referenced this pull request May 11, 2026
bendusy pushed a commit to bendusy/GenericAgent that referenced this pull request May 14, 2026
RocketLi pushed a commit to RocketLi/GenericAgent that referenced this pull request May 18, 2026
lsdefine pushed a commit that referenced this pull request Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants