Commit c981614
committed
fix: complete all remaining production hardening fixes
- Fix stale closures: sessionRef syncs with session state, sendMessage uses sessionRef.current
- Add rate limiting: 500ms debounce on user input prevents double-send
- Add settings migration system: v1→v2 migration with version tracking
- Fix unifiedDiff: proper LCS-based diff using dynamic programming with fallback for large files
- Wire up clearSessionFiles: called on /compact to prevent memory leak
- Fix DuckDuckGo scraping: multiple URL fallbacks, multiple snippet patterns, graceful degradation
- Add streaming state to orchestration commands (setIsStreaming/setMood on start/complete/error)
- Improve token estimation: code vs text differentiation, tool call overhead, system prompt overhead
All 10 remaining audit items addressed.1 parent 041593f commit c981614
File tree
15 files changed
+433
-93
lines changed- dist
- sessions
- tools
- ui
- src
- sessions
- settings
- tools
- ui
15 files changed
+433
-93
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments