You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 474634f
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(web): chat route shortcuts register once instead of rebuilding on every store change
The chat route's new-thread, preview and Escape-clears-selection shortcuts
lived in a null component whose 16-dependency effect removed and re-added a
window keydown listener on every project, settings, environment, selection,
terminal, right-panel or draft change. Each re-add moved it to the end of
window's keydown order, and the component re-rendered on each of those changes.
Register the same commands once at app start through the command dispatcher.
Handlers read routes, stores, settings and session scopes at event time, and a
when-guard keeps the old mount condition (chat route, no modal page, palette
closed). useNewThreadHandler and useScratchProject now wrap router-based
factories, and the new-thread handler reads project grouping settings at call
time instead of subscribing to them.
Effects: routes/_chat.tsx 1 -> 0. No effects added.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
0 commit comments