From 61ebf9ca78bd3c5420f9e48ce1837579e576605e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Mar 2026 11:36:21 +0000 Subject: [PATCH 1/3] Initial plan From 1c681c658493f48f0ceb2d855f55a6f5a68d53ba Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Mar 2026 11:41:19 +0000 Subject: [PATCH 2/3] Exclude tmp and storage folders from file watcher Co-authored-by: guoyunhe <5836790+guoyunhe@users.noreply.github.com> --- src/file_system.ts | 4 ++-- tests/file_system.spec.ts | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/file_system.ts b/src/file_system.ts index 282d88bd..8e19fdef 100644 --- a/src/file_system.ts +++ b/src/file_system.ts @@ -17,7 +17,7 @@ import { memoize } from './utils.ts' import { type InspectedFile, type AssemblerRcFile } from './types/common.ts' const DEFAULT_INCLUDES = ['**/*'] -const ALWAYS_EXCLUDE = ['.git/**', 'coverage/**', '.github/**', '.adonisjs/**'] +const ALWAYS_EXCLUDE = ['.git/**', 'coverage/**', '.github/**', '.adonisjs/**', 'tmp/**', 'storage/**'] const DEFAULT_EXCLUDES = ['node_modules/**', 'bower_components/**', 'jspm_packages/**'] /** @@ -111,7 +111,7 @@ export class FileSystem { * * Following patterns are always ignored * - * '.git/**', 'coverage/**', '.github/**' + * '.git/**', 'coverage/**', '.github/**', '.adonisjs/**', 'tmp/**', 'storage/**' */ get excludes(): string[] { return this.#excludes diff --git a/tests/file_system.spec.ts b/tests/file_system.spec.ts index 4d53f656..4805a4a5 100644 --- a/tests/file_system.spec.ts +++ b/tests/file_system.spec.ts @@ -142,6 +142,22 @@ test.group('File system', () => { input: '.git', result: false, }, + { + input: 'tmp', + result: false, + }, + { + input: 'tmp/foo', + result: false, + }, + { + input: 'storage', + result: false, + }, + { + input: 'storage/logs', + result: false, + }, ]) .run(({ assert }, { input, result }) => { const config = readTsConfig(BASE_PATH)! From 50351fce01d8d5b292bf330e643c691580873d94 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Mar 2026 13:08:35 +0000 Subject: [PATCH 3/3] Add build directory to always-excluded file watcher patterns Co-authored-by: guoyunhe <5836790+guoyunhe@users.noreply.github.com> --- src/file_system.ts | 4 ++-- tests/file_system.spec.ts | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/file_system.ts b/src/file_system.ts index 8e19fdef..43e5fe46 100644 --- a/src/file_system.ts +++ b/src/file_system.ts @@ -17,7 +17,7 @@ import { memoize } from './utils.ts' import { type InspectedFile, type AssemblerRcFile } from './types/common.ts' const DEFAULT_INCLUDES = ['**/*'] -const ALWAYS_EXCLUDE = ['.git/**', 'coverage/**', '.github/**', '.adonisjs/**', 'tmp/**', 'storage/**'] +const ALWAYS_EXCLUDE = ['.git/**', 'coverage/**', '.github/**', '.adonisjs/**', 'tmp/**', 'storage/**', 'build/**'] const DEFAULT_EXCLUDES = ['node_modules/**', 'bower_components/**', 'jspm_packages/**'] /** @@ -111,7 +111,7 @@ export class FileSystem { * * Following patterns are always ignored * - * '.git/**', 'coverage/**', '.github/**', '.adonisjs/**', 'tmp/**', 'storage/**' + * '.git/**', 'coverage/**', '.github/**', '.adonisjs/**', 'tmp/**', 'storage/**', 'build/**' */ get excludes(): string[] { return this.#excludes diff --git a/tests/file_system.spec.ts b/tests/file_system.spec.ts index 4805a4a5..7161f285 100644 --- a/tests/file_system.spec.ts +++ b/tests/file_system.spec.ts @@ -158,6 +158,14 @@ test.group('File system', () => { input: 'storage/logs', result: false, }, + { + input: 'build', + result: false, + }, + { + input: 'build/app', + result: false, + }, ]) .run(({ assert }, { input, result }) => { const config = readTsConfig(BASE_PATH)!