Undo and multi-window sync (#26) #72
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
needs-info
needs-triage
question
ready-for-agent
ready-for-human
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crowmaki/ai-studio!72
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-26-undo-multi-window"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #26. Part of #24.
What
studio-core(undo.rs): anEdittrait (apply / revert / changes), redo cleared on a new edit, depth bounded at 200. Append-only operations have noEdit, so they cannot enter the log.Change { kind, ids }. The adapter'smutatedrains the changes and emits achangedevent to every window.open_windowopens a second window on the sameProjectSession. The UI refetches onchanged.Tests
tests/undo.rsand a new adapter smoke test with stub hooks.Checks
cargo test --workspace --all-features,cargo clippy --workspace --all-targets --all-features -- -D warningsandbun run checkpass.