Commit 341e618
release: v0.2.3 (#36)
* fix: preserve scroll position and resolve idle lag issues (#29)
* fix: resolve idle lag/hang issue when app is idle
Root causes addressed:
- Windows CWD polling was doing unnecessary work (returns null)
- Polling services continued during idle (CWD, Git trackers)
- WebGL context recovery lacked debouncing
- Activity state updates were excessive during rapid output
Changes:
- Disable CWD polling on Windows (AC-US2-03)
- Add visibility-aware polling (AC-US2-01, AC-US2-02)
- Implement debounced WebGL recovery with 300ms delay (AC-US3-01, AC-US3-02)
- Throttle activity state updates to 100ms intervals (AC-US1-01)
- Add visibility IPC for main-renderer communication
- Add comprehensive tests for visibility handling
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: preserve scroll position and fix cursor duplication on pane move
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: address code review findings
- Add missing VisibilityApi type import in preload/index.ts
- Remove unused getCachedScrollPosition import
- Fix ineffective WebGL isContextLost check (canvas.getContext returns null)
- Fix disposal order test to use actual WebGL addon instance
- Use isWindows field instead of process.platform in cwd-tracker
- Convert real setTimeout to fake timers in cwd-tracker tests
- Rewrite git-tracker visibility test to exercise actual behavior
- Track setTimeout IDs in visibility/power-resume handlers
- Add destroyTerminal function to clean up scrollPositionCache
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: add onPowerResume API and fix activity tracking
- Add onPowerResume to SystemApi interface and preload implementation
- Add VisibilityApi to Window.api type declaration
- Replace updateTerminalActivityBatched with updateTerminalActivity and
updateTerminalLastActivityTimestamp calls (method doesn't exist in store)
- Move constants to module level for better performance
- Fix WebGL recovery to only recreate when context was actually lost
- Add webglContextLostRef to track context loss state
- Fix timer leaks in git-tracker tests with try/finally pattern
- Remove non-existent updateTerminalActivityBatched from test mock
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: test state leaks and WebGL recovery logic
- Reset lastCreatedWebglInstance in beforeEach to prevent stale state leaks
- Fix WebGL recovery condition: check !webglAddonRef.current (addon is null
after onContextLoss) instead of webglAddonRef.current
- Cancel pending auto-recovery timeout before recreating to avoid double-creation
- Add afterEach to restore visibility state and timers in visibility tests
- Rename terminal to terminalRecord to avoid shadowing outer closure variable
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: timer cleanup and WebGL recovery state reset
- Add afterEach to WebGL context loss recovery tests to reset fake timers
- Move vi.useFakeTimers() before render in context loss test
- Reset webglRecoveryAttemptsRef and webglContextLostRef in cleanup
- Set loadWebglAddonRef.current = null in cleanup to release closure references
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
* fix: use dashes in artifact names for auto-updater compatibility (#31)
Change artifact naming from dots to dashes to match what existing
v0.2.2 clients expect in latest.yml. This ensures users on v0.2.2
can auto-update to future releases.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
* fix(changelog): prevent duplicate PR references in release notes (#32)
When squash merging PRs, GitHub includes the PR number in commit titles
(e.g., `feat: something (#25)`). Git-cliff was also adding another PR link,
resulting in duplicate references like `(#25) ([#25](...))`.
This fix detects existing PR references in commit messages and skips
adding the duplicate link. Also updated from deprecated `commit.github.pr_number`
to `commit.remote.pr_number` for future compatibility.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
* fix: resolve performance issues causing app lag and idle hangs (#33)
* fix: resolve performance issues causing app lag and idle hangs
- Git tracker: increase poll interval from 2s to 5s and add concurrent
poll guard to prevent overlapping git status processes
- Terminal store: add ptyIdIndex Map for O(1) lookups instead of linear
scan on every data event, add batched activity update method to
combine hasActivity + timestamp into single set() call
- ConnectedTerminal: cache ptyId-to-terminalId mapping and use batched
store updates, reducing store notifications and array copies by half
- Auto-save: skip activity-only store changes to prevent unnecessary
scrollback serialization on every activity toggle
- Editor persistence: coalesce three independent debounce timers into
one shared timer to prevent up to 3x redundant disk writes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: address PR review feedback on performance changes
- Remove healthStatus from auto-save structural check since
serializeTerminalsForProject does not persist it, preventing
spurious writeDebounced calls
- Advance skip-polling test timer to 6500ms so the setInterval
actually fires and the visibility guard is exercised
- Derive STATUS_POLL_INTERVAL_MS from GIT_COMMAND_TIMEOUT_MS + 1000
to prevent cadence overlap when git commands hit their timeout
- Wrap pollAllStatus body in outer try/catch to prevent unhandled
rejections from synchronous errors; replace Promise.allSettled
with Promise.all since inner promises already catch
- Simplify pendingActivityUpdateRef to { id: string } since
hasActivity is always true at write sites and never read in the
timeout path
- Destructure ptyIdIndex alongside terminals in closeTerminal to
eliminate redundant get() call
- Add @deprecated JSDoc to legacy updateTerminalActivity and
updateTerminalLastActivityTimestamp methods
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Update src/renderer/hooks/useTerminalAutoSave.ts
Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
* Update src/renderer/hooks/useTerminalAutoSave.ts
Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
* fix: show dotfiles in project explorer (#34)
* fix: show dotfiles in project explorer
Remove the hidden file filter that was hiding all files/folders
starting with "." from the file explorer. The hardcoded ignores
(.git, .DS_Store, node_modules, etc.) still apply.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: resolve empty interface lint error in filesystem types
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: remove unused ReadDirectoryOptions type and dead options parameter
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: remove duplicate line causing parse error in useTerminalAutoSave
Also ignore .auto-claude directory in eslint config.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
* chore: bump version to v0.2.3 (#35)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>1 parent 5668e1d commit 341e618
File tree
26 files changed
+1246
-129
lines changed- src
- main
- ipc
- services
- preload
- renderer
- components/terminal
- hooks
- stores
- utils
26 files changed
+1246
-129
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | | - | |
22 | | - | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
155 | 161 | | |
156 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
157 | 169 | | |
158 | 170 | | |
159 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| 114 | + | |
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
85 | | - | |
86 | | - | |
| 84 | + | |
87 | 85 | | |
88 | 86 | | |
89 | 87 | | |
90 | 88 | | |
91 | 89 | | |
92 | | - | |
| 90 | + | |
93 | 91 | | |
94 | 92 | | |
95 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
6 | 14 | | |
7 | 15 | | |
| 16 | + | |
8 | 17 | | |
9 | 18 | | |
10 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
11 | 24 | | |
12 | 25 | | |
13 | 26 | | |
14 | 27 | | |
15 | 28 | | |
16 | 29 | | |
17 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
18 | 35 | | |
19 | 36 | | |
20 | 37 | | |
| |||
83 | 100 | | |
84 | 101 | | |
85 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
86 | 211 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
26 | 34 | | |
27 | 35 | | |
28 | 36 | | |
| |||
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
68 | 81 | | |
69 | 82 | | |
70 | 83 | | |
| |||
91 | 104 | | |
92 | 105 | | |
93 | 106 | | |
94 | | - | |
| 107 | + | |
95 | 108 | | |
96 | 109 | | |
97 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
65 | | - | |
66 | | - | |
| 64 | + | |
67 | 65 | | |
68 | 66 | | |
69 | 67 | | |
| |||
82 | 80 | | |
83 | 81 | | |
84 | 82 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | 83 | | |
89 | 84 | | |
90 | 85 | | |
| |||
0 commit comments