Fix agent behaviour

This commit is contained in:
Andras Schmelczer 2025-02-23 16:45:52 +00:00
parent b4783d1007
commit c69f84edf5
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
4 changed files with 16 additions and 3 deletions

View file

@ -1,5 +1,5 @@
import type { FileSystemOperations } from "dist/types";
import type { RelativePath } from "src/persistence/database";
import type { FileSystemOperations } from "./filesystem-operations";
export class FileNotFoundError extends Error {
public constructor(message: string) {

View file

@ -8,7 +8,6 @@ import type {
} from "../persistence/database";
import type { Logger } from "src/tracing/logger";
import { retriedFetchFactory } from "src/utils/retried-fetch";
import type { SyncSettings } from "dist/types";
import type { Settings } from "src/persistence/settings";
export interface CheckConnectionResult {

View file

@ -206,6 +206,7 @@ export class Syncer {
await this.operations.read(relativePath);
const contentHash = hash(contentBytes);
// todo: make this smarter so that offline files can be renamed & edited at the same time
const originalFile = findMatchingFileBasedOnHash(
contentHash,
locallyPossiblyDeletedFiles