Skip to content

add hook for file editing#9324

Merged
harryalbert merged 3 commits intomasterfrom
harry/remote-1465-add-oz-file-editcreation-hooks-for-better-snapshotting
May 2, 2026
Merged

add hook for file editing#9324
harryalbert merged 3 commits intomasterfrom
harry/remote-1465-add-oz-file-editcreation-hooks-for-better-snapshotting

Conversation

@harryalbert
Copy link
Copy Markdown
Contributor

Migrated from /Users/harryalbert/warp-external via script/migrate-private-to-public.

Commits

  • 3bbed46 add product and tech specs
  • d96b098 add snapshot writer that hooks onto oz file changes
  • 5054891 fix task crash

@cla-bot cla-bot Bot added the cla-signed label Apr 28, 2026
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented Apr 28, 2026

@harryalbert

I'm starting a first review of this pull request.

You can follow along in the session on Warp.

I completed the review and posted feedback on this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR adds an Oz SDK driver hook that records successful file-edit results into the snapshot declarations file, filters file declarations covered by repo declarations, and adds tests/specs for the new snapshot behavior.

Concerns

  • The new repo-overlap filter compares declaration paths without normalizing them first, so valid absolute paths containing .. can be dropped as repo-covered even when their normalized location is outside the repo.

Verdict

Found: 0 critical, 1 important, 0 suggestions

Request changes

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

}
let file_path = Path::new(&entry.path);
for repo in &repo_paths {
if file_path.starts_with(repo) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [IMPORTANT] Normalize declaration paths before this prefix check; an absolute entry like /workspace/repo/../outside.log is currently treated as covered by /workspace/repo and gets dropped even though it resolves outside the repo.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need this, as the agent is setting the file path and it uses absolute paths

@harryalbert harryalbert requested a review from zachbai April 29, 2026 23:07
@harryalbert harryalbert force-pushed the harry/remote-1465-add-oz-file-editcreation-hooks-for-better-snapshotting branch from 5054891 to b84b12c Compare April 30, 2026 22:42
Copy link
Copy Markdown
Contributor Author

harryalbert commented Apr 30, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@harryalbert harryalbert force-pushed the harry/remote-1465-add-oz-file-editcreation-hooks-for-better-snapshotting branch from b84b12c to 1bc8dc0 Compare May 1, 2026 14:09
@harryalbert harryalbert force-pushed the harry/remote-1465-add-oz-file-editcreation-hooks-for-better-snapshotting branch from 1bc8dc0 to 30b11c8 Compare May 1, 2026 23:20
@harryalbert harryalbert merged commit 5c89948 into master May 2, 2026
26 checks passed
@harryalbert harryalbert deleted the harry/remote-1465-add-oz-file-editcreation-hooks-for-better-snapshotting branch May 2, 2026 00:25
wolverine2k pushed a commit to wolverine2k/warp that referenced this pull request May 5, 2026
Migrated from /Users/harryalbert/warp-external via
`script/migrate-private-to-public`.

## Commits

- 3bbed46 add product and tech specs
- d96b098 add snapshot writer that hooks onto oz file changes
- 5054891 fix task crash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants