@devries-cameron20 / t3code-1 / commits / 24c063ae80
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

test(lint): new polling loops in tests now fail lint (#23983)

Theo Browne committed Oct 23, 2026 at 04:11 UTC 24c063ae804b38e4a900ae54fda55865293a333a
1 file changed +22 -4
vite.config.ts
+22 -4
@@ -225,8 +225,8 @@ export default defineConfig({
225 "t3code/no-low-value-comments": "error",
226 "t3code/no-manual-effect-runtime-in-tests": "error",
227 "t3code/no-native-title-tooltip": "error",
228 - // Test files only (the rule checks the filename). Becomes an error once existing polls are converted.
229 - "t3code/no-polling-loop-in-tests": "warn",
228 + // Test files only (the rule checks the filename).
229 + "t3code/no-polling-loop-in-tests": "error",
230 "t3code/no-raw-mcp-registration": "error",
231 "t3code/no-real-time-wait-in-tests": "error",
232 "t3code/no-test-in-loop": "error",
@@ -258,8 +258,26 @@ export default defineConfig({
258 rules: { "t3code/no-frame-waits-in-browser-tests": "error" },
259 },
260 {
261 - files: ["**/*.browser.test.*"],
262 - rules: { "t3code/no-real-time-wait-in-tests": "off" },
261 + // Burn-down list: these files still have polling loops, so they stay at "warn".
262 + // Remove a file when you convert its loops. New polling loops in all other
263 + // test files fail lint. Do not add new files to this list.
264 + files: [
265 + "apps/mobile/src/features/agent-awareness/remoteRegistration.test.ts",
266 + "apps/server/src/background/HostPowerMonitor.test.ts",
267 + "apps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.ts",
268 + "apps/server/src/orchestration-v2/FoundationPersistence.test.ts",
269 + "apps/server/src/project/ProjectEnrichmentService.test.ts",
270 + "apps/server/src/project/ProjectService.test.ts",
271 + "apps/server/src/scheduledTasks/ScheduledTaskService.webhook.test.ts",
272 + "apps/server/src/usage/UsageService.test.ts",
273 + "packages/client-runtime/src/connection/supervisor.test.ts",
274 + "packages/client-runtime/src/rpc/client.test.ts",
275 + "packages/client-runtime/src/rpc/session.test.ts",
276 + "packages/client-runtime/src/state/shell-sync.test.ts",
277 + "packages/client-runtime/src/state/threads-sync.test.ts",
278 + "packages/shared/src/atomicWrite.test.ts",
279 + ],
280 + rules: { "t3code/no-polling-loop-in-tests": "warn" },
281 },
282 {
283 files: ["apps/**/src/**", "packages/**/src/**"],