Fix agent behaviour
This commit is contained in:
parent
b4783d1007
commit
c69f84edf5
4 changed files with 16 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue