Skip to content

Restore points: AI integration continued..#2681

Merged
abose merged 4 commits intomainfrom
z
Feb 19, 2026
Merged

Restore points: AI integration continued..#2681
abose merged 4 commits intomainfrom
z

Conversation

@abose
Copy link
Member

@abose abose commented Feb 19, 2026

No description provided.

The Read hook's denial message mentioned 'unsaved editor content' which
caused Claude to misinterpret it as an error blocking its edits.
…erence

Add compact trace logging for AI events on both node and browser sides
for debugging without flooding the console. Fix _finishActiveTools to
not override the delayed timeout set by _updateToolIndicator. Add
"receiving N bytes..." fallback preview during tool input streaming.
Instruct model to prefer Edit over Write for existing files via
appendSystemPrompt. Add timestamps to MCP browser console log output.
Replace separate edit cards at bottom of response with inline Undo/Redo
and Show diff controls directly on each Edit/Write tool indicator.

- Send per-edit aiToolEdit events from node hooks instead of batched
  aiEditResult at completion, capturing toolCounter before async to
  avoid race conditions with the streaming loop
- New _onToolEdit handler matches edit events to tool indicators by
  filename (handles SDK partial re-emissions gracefully)
- Undo/Redo button toggles between states with green redo styling
- Edit summary card at end of response shows files changed with +/- stats
- Fix external change warnings: check file.exists() before disk write
  in Write handler to avoid triggering file watcher on existing files
- Remove _appendEditCard, _onEditResult, and .ai-msg-edit CSS block
Replace per-edit undo buttons with a timeline of restore points:
- Initial PUC (snapshot 0) before first AI edit per session
- Summary card per response with Undo (latest) / Restore to this point
- Clicked restore point shows "Restored" with green highlight
- All buttons disabled during AI streaming
- Extract snapshot logic into AISnapshotStore module

Fix stale $messages reference via _$msgs() live DOM query helper
for deferred operations (click handlers, callbacks) after
SidebarTabs reparents the panel.
@sonarqubecloud
Copy link

@abose abose merged commit 02cfb53 into main Feb 19, 2026
20 of 21 checks passed
@abose abose deleted the z branch February 19, 2026 12:53
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.

1 participant

Comments