Skip to content

Fix file creation - #5

Merged
slapoguzov merged 2 commits into
mainfrom
a.slapoguzov/fixes
Dec 21, 2025
Merged

Fix file creation#5
slapoguzov merged 2 commits into
mainfrom
a.slapoguzov/fixes

Conversation

@slapoguzov

Copy link
Copy Markdown
Collaborator

Fix file creation

@slapoguzov
slapoguzov requested a review from xtmq December 21, 2025 13:38
@slapoguzov slapoguzov changed the title a.slapoguzov/fixes Fix file creation Dec 21, 2025
Comment thread src/CodexEventHandler.ts
const oldContent = change.kind.type === "add" ? "" : await readFile(change.path, { encoding: "utf8" });
const newContent = applyPatch(oldContent, change.diff);
if (!newContent) {
if (newContent === false) {

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.

we can not remove files using this event?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

will handle it later

@slapoguzov
slapoguzov merged commit 2d742ad into main Dec 21, 2025
5 of 6 checks passed
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.

2 participants