GitHub check
256 KB of 604 KB loaded Download the full log (604 KB)
348 KB of earlier output not loaded
s.test.ts:115:11]
114 โ ...(manifest.dependencies ?? {}),
115 โ ...(manifest.optionalDependencies ?? {}),
ยท โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
116 โ ...(manifest.peerDependencies ?? {}),
โฐโโโโ
help: Spreading falsy values in object literals won't add any unexpected properties, so it's unnecessary to add an empty object as fallback.
โ unicorn(no-useless-fallback-in-spread): Empty fallbacks in spreads are unnecessary
โญโ[scripts/lib/cli-external-packages.test.ts:116:11]
115 โ ...(manifest.optionalDependencies ?? {}),
116 โ ...(manifest.peerDependencies ?? {}),
ยท โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
117 โ };
โฐโโโโ
help: Spreading falsy values in object literals won't add any unexpected properties, so it's unnecessary to add an empty object as fallback.
โ react(exhaustive-effect-dependencies): Found extra effect dependencies
โญโ[apps/mobile/src/components/ComposerEditor.tsx:82:6]
81 โ },
82 โ [draftKey],
ยท โโโโโฌโโโ
ยท โฐโโ Unnecessary dependency `draftKey`
83 โ );
โฐโโโโ
help: Extra dependencies can cause an effect to fire more often than it should, resulting in performance problems such as excessive renders and side effects
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/exhaustive-deps
โ eslint(no-unused-vars): Variable 'layer' is declared but never used. Unused variables should start with a '_'.
โญโ[packages/provider-grok/src/server/adapter.ts:408:7]
407 โ
408 โ const layer: Layer.Layer<
ยท โโโฌโโ
ยท โฐโโ 'layer' is declared here
409 โ ProviderAdapter.ProviderAdapterV2,
โฐโโโโ
help: Consider removing this declaration.
โ eslint(no-unused-vars): Function 'promptResponseHasMissingXAiStopReason' is declared but never used.
โญโ[packages/provider-grok/src/server/xaiAcpExtension.ts:1620:10]
1619 โ
1620 โ function promptResponseHasMissingXAiStopReason(response: EffectAcpSchema.PromptResponse): boolean {
ยท โโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโ
ยท โฐโโ 'promptResponseHasMissingXAiStopReason' is declared here
1621 โ const meta = response._meta;
โฐโโโโ
help: Consider removing this declaration.
โ t3code(no-inline-schema-compile): Hoist Schema.encodeEffect(...) to module scope: both the inline schema literal and the compiled function are rebuilt on every call. Move the compiled function to a module-level const.
โญโ[apps/server/src/assets/AssetAccess.test.ts:1043:32]
1042 โ expect(error._tag).toBe("AssetGitHubMediaUrlValidationError");
1043 โ const encoded = yield* Schema.encodeEffect(Schema.fromJsonString(AssetAccessError))(error);
ยท โโโโโโโโโโโโโโโโโโโ
1044 โ expect(encoded).not.toContain(url);
โฐโโโโ
โ t3code(no-polling-loop-in-tests): Polling loop in a test. Spinning on `yieldNow`/`sleep` is scheduler- and load-dependent. Await the `Deferred`, `Queue.take`, `Stream` element, `drain()`, or `expect.poll` that marks the milestone.
โญโ[apps/server/src/background/HostPowerMonitor.test.ts:133:11]
132 โ const monitor = yield* HostPowerMonitor.HostPowerMonitor;
133 โ โญโโถ for (
134 โ โ let attempt = 0;
135 โ โ attempt < 100 && (yield* monitor.snapshot).onBattery !== "true";
136 โ โ attempt += 1
137 โ โ ) {
138 โ โ yield* Effect.yieldNow;
139 โ โฐโโถ }
140 โ expect((yield* monitor.snapshot).onBattery).toBe("true");
โฐโโโโ
โ unicorn(prefer-array-find): Prefer `find` over filtering and accessing the first result.
โญโ[apps/server/src/terminal/Manager.test.ts:731:31]
730 โ );
731 โ const snapshot = events.filter((event) => event.type === "snapshot").at(-1)?.snapshot;
ยท โโโโโโ
732 โ expect(snapshot?.history).toBe("aa๐\rEND");
โฐโโโโ
help: Use `find(predicate)` instead of `filter(predicate)[0]` or similar patterns.
โ eslint(no-unused-vars): Parameter '_' is declared but never used.
โญโ[apps/server/src/mcp/WorktreeMcpService.test.ts:121:27]
120 โ const scope = makeScope(options.capabilities ?? new Set(["preview", "worktree"]));
121 โ const dispatch = vi.fn((_: unknown) =>
ยท โฌ
ยท โฐโโ '_' is declared here
122 โ (options.dispatchGate ?? Effect.void).pipe(
โฐโโโโ
help: Consider removing this parameter.
โ eslint(no-unused-vars): Parameter '_' is declared but never used.
โญโ[apps/server/src/mcp/WorktreeMcpService.test.ts:134:39]
133 โ );
134 โ const listLocalBranchNames = vi.fn((_: string) =>
ยท โฌ
ยท โฐโโ '_' is declared here
135 โ Effect.succeed(
โฐโโโโ
help: Consider removing this parameter.
โ eslint(no-unused-vars): Parameter '_' is declared but never used.
โญโ[apps/server/src/mcp/WorktreeMcpService.test.ts:178:31]
177 โ });
178 โ const sendToThread = vi.fn((_: unknown) => {
ยท โฌ
ยท โฐโโ '_' is declared here
179 โ switch (options.continuation ?? "queued") {
โฐโโโโ
help: Consider removing this parameter.
โ eslint(no-unused-vars): Parameter '_' is declared but never used.
โญโ[apps/server/src/mcp/WorktreeMcpService.test.ts:203:33]
202 โ );
203 โ const removeWorktree = vi.fn((_: unknown) =>
ยท โฌ
ยท โฐโโ '_' is declared here
204 โ options.removeWorktreeFails
โฐโโโโ
help: Consider removing this parameter.
โ eslint(no-unused-vars): Parameter '_' is declared but never used.
โญโ[apps/server/src/mcp/WorktreeMcpService.test.ts:208:36]
207 โ );
208 โ const deleteLocalBranch = vi.fn((_: unknown) =>
ยท โฌ
ยท โฐโโ '_' is declared here
209 โ options.deleteLocalBranchFails
โฐโโโโ
help: Consider removing this parameter.
โ eslint(no-unused-vars): Parameter '_' is declared but never used.
โญโ[apps/server/src/mcp/WorktreeMcpService.test.ts:213:42]
212 โ );
213 โ const fetchWorktreeBaseCommit = vi.fn((_: unknown) =>
ยท โฌ
ยท โฐโโ '_' is declared here
214 โ options.fetchWorktreeBaseFails
โฐโโโโ
help: Consider removing this parameter.
โ eslint(no-unused-vars): Parameter '_' is declared but never used.
โญโ[apps/server/src/mcp/WorktreeMcpService.test.ts:254:30]
253 โ );
254 โ const localStatus = vi.fn((_: unknown) =>
ยท โฌ
ยท โฐโโ '_' is declared here
255 โ Effect.succeed({
โฐโโโโ
help: Consider removing this parameter.
โ eslint(no-unused-vars): Parameter '_' is declared but never used.
โญโ[apps/server/src/mcp/WorktreeMcpService.test.ts:264:32]
263 โ );
264 โ const refreshStatus = vi.fn((_: string) => Effect.die("refreshStatus stub"));
ยท โฌ
ยท โฐโโ '_' is declared here
265 โ const runForThread = vi.fn((input: { readonly worktreePath: string }) => {
โฐโโโโ
help: Consider removing this parameter.
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/components/ui/Menu.tsx:54:36]
53 โ const child = children as ReactElement<Pick<PressableProps, "onTouchStart" | "onPress">>;
54 โ โญโโถ children = cloneElement(child, {
55 โ โ onTouchStart: (event) => {
56 โ โ // Reset for a new touch, not onPressIn, which also fires when a
57 โ โ // finger moves out of the row and back during the same gesture.
58 โ โ menuPress.current.isPreparing = false;
59 โ โ menuPress.current.suppressPress = menuPress.current.isOpen;
60 โ โ pendingPress.current = null;
61 โ โ child.props.onTouchStart?.(event);
62 โ โ },
63 โ โ onPress: (event) => {
64 โ โ // Accessibility clicks have no touch identifier and must not inherit
65 โ โ // cancellation from a previous physical gesture.
66 โ โ const isTouch = typeof event.nativeEvent.identifier === "number";
67 โ โ if (isTouch ? menuPress.current.suppressPress : menuPress.current.isOpen) {
68 โ โ return;
69 โ โ }
70 โ โ if (isTouch && menuPress.current.isPreparing) {
71 โ โ // A release can arrive between native menu preparation and display.
72 โ โ // Let UIKit's display/cancel callback decide this press's outcome.
73 โ โ event.persist();
74 โ โ pendingPress.current = () => child.props.onPress?.(event);
75 โ โ return;
76 โ โ }
77 โ โ child.props.onPress?.(event);
78 โ โ },
79 โ โโโถ });
ยท โฐโโโโ Passing a ref to a function may read its value during render
80 โ menuProps.onMenuInteractionStart = () => {
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ typescript(no-extraneous-class): Unexpected class with only a constructor.
โญโ[apps/desktop/src/preview/Manager.test.ts:158:18]
157 โ BrowserWindow: browserWindowConstructor,
158 โ โญโโถ ClipboardItem: class {
159 โ โ constructor(data: Record<string, unknown>) {
160 โ โ clipboardItemConstructor(data);
161 โ โ }
162 โ โฐโโถ },
163 โ clipboard: {
โฐโโโโ
help: Try replacing this class with a standalone function or deleting it entirely
โ t3code(no-inline-schema-compile): Hoist Schema.encodeEffect(...) to module scope: both the inline schema literal and the compiled function are rebuilt on every call. Move the compiled function to a module-level const.
โญโ[apps/server/src/serverSettings.test.ts:1741:32]
1740 โ const model = createModelSelection(ProviderInstanceId.make("codex"), "gpt-5.5");
1741 โ const modelJson = yield* Schema.encodeEffect(Schema.fromJsonString(ModelSelection))(model);
ยท โโโโโโโโโโโโโโโโโโโ
1742 โ const scriptsJson = yield* Schema.encodeEffect(
โฐโโโโ
โ t3code(no-inline-schema-compile): Hoist Schema.encodeEffect(...) to module scope: both the inline schema literal and the compiled function are rebuilt on every call. Move the compiled function to a module-level const.
โญโ[apps/server/src/serverSettings.test.ts:1742:34]
1741 โ const modelJson = yield* Schema.encodeEffect(Schema.fromJsonString(ModelSelection))(model);
1742 โ const scriptsJson = yield* Schema.encodeEffect(
ยท โโโโโโโโโโโโโโโโโโโ
1743 โ Schema.fromJsonString(Schema.Array(ProjectScript)),
โฐโโโโ
โ react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders
โญโ[apps/mobile/src/features/review/useReviewCommentSelectionController.ts:107:5]
104 โ
105 โ useEffect(() => {
ยท โโโโโฌโโโโ
ยท โฐโโ This is the containing effect
106 โ clearReviewCommentTarget();
107 โ setPendingNativeCommentSelection(null);
ยท โโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโ
ยท โฐโโ Avoid calling setState() directly within an effect
108 โ }, [selectedSection?.id]);
โฐโโโโ
help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system.
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect
โ react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders
โญโ[apps/mobile/src/features/review/useReviewCommentSelectionController.ts:112:7]
109 โ
110 โ useEffect(() => {
ยท โโโโโฌโโโโ
ยท โฐโโ This is the containing effect
111 โ if (activeCommentTarget === null) {
112 โ setPendingNativeCommentSelection(null);
ยท โโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโ
ยท โฐโโ Avoid calling setState() directly within an effect
113 โ }
โฐโโโโ
help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system.
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect
โ react(exhaustive-effect-dependencies): Found extra effect dependencies
โญโ[apps/mobile/src/features/review/useReviewCommentSelectionController.ts:108:7]
107 โ setPendingNativeCommentSelection(null);
108 โ }, [selectedSection?.id]);
ยท โโโโโโโโโโฌโโโโโโโโโ
ยท โฐโโ Unnecessary dependency `selectedSection?.id`
109 โ
โฐโโโโ
help: Extra dependencies can cause an effect to fire more often than it should, resulting in performance problems such as excessive renders and side effects
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/exhaustive-deps
โ eslint(no-new): Do not use 'new' for side effects.
โญโ[apps/server/src/mcp/McpToolAccess.test.ts:168:3]
167 โ // @ts-expect-error a declaration constructed directly
168 โ new McpToolAccess.Declaration(unchecked);
ยท โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
169 โ // @ts-expect-error a handlers layer built outside McpToolAccess
โฐโโโโ
help: Assign the result of 'new' to a variable or compare it to a reference.
โ eslint(no-unused-vars): Variable 'revokeActiveMcpThread' is declared but never used. Unused variables should start with a '_'.
โญโ[apps/server/src/mcp/McpSessionRegistry.ts:218:7]
217 โ
218 โ const revokeActiveMcpThread = (threadId: ThreadId): Effect.Effect<void> =>
ยท โโโโโโโโโโโฌโโโโโโโโโโ
ยท โฐโโ 'revokeActiveMcpThread' is declared here
219 โ activeMcpSessionRegistry ? activeMcpSessionRegistry.revokeThread(threadId) : Effect.void;
โฐโโโโ
help: Consider removing this declaration.
โ eslint(no-unused-vars): Variable 'revokeAllActiveMcpCredentials' is declared but never used. Unused variables should start with a '_'.
โญโ[apps/server/src/mcp/McpSessionRegistry.ts:221:7]
220 โ
221 โ const revokeAllActiveMcpCredentials = (): Effect.Effect<void> =>
ยท โโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโ
ยท โฐโโ 'revokeAllActiveMcpCredentials' is declared here
222 โ activeMcpSessionRegistry ? activeMcpSessionRegistry.revokeAll : Effect.void;
โฐโโโโ
help: Consider removing this declaration.
โ react(memo-dependencies): Found extra memoization dependencies
โญโ[apps/mobile/src/features/keyboard/HardwareKeyboardCommandProvider.tsx:116:34]
115 โ return [...commands];
116 โ }, [activeThreadRef, pathname, registrationVersion, navigation]);
ยท โโโโโโโโโโฌโโโโโโโโโ
ยท โฐโโ Unnecessary dependency `registrationVersion`
117 โ
โฐโโโโ
help: Extra dependencies can cause a value to update more often than it should, resulting in performance problems such as excessive renders or effects firing too often
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/exhaustive-deps
โ unicorn(no-array-reverse): Use `Array#toReversed()` instead of `Array#reverse()`.
โญโ[packages/shared/src/composerContextLegacySend.ts:19:45]
18 โ const occurrences = collectComposerContextReferences(text);
19 โ for (const occurrence of [...occurrences].reverse()) {
ยท โโโโโโโ
20 โ const record = recordsById.get(occurrence.contextId);
โฐโโโโ
help: `Array#reverse()` mutates the original array. Use `Array#toReversed()` to return a new reversed array without modifying the original.
โ eslint(no-control-regex): Unexpected control character
โญโ[apps/mobile/src/features/settings/SettingsProviderAccountsRouteScreen.tsx:220:46]
219 โ <Text selectable className="font-mono text-sm text-foreground">
220 โ {interaction.output.replace(/\x1b\[[0-?]*[ -/]*[@-~]/g, "")}
ยท โโโฌโ
ยท โฐโโ 'U+001B' is a control character.
221 โ </Text>
โฐโโโโ
help: Avoid matching control characters in regular expressions. If intentional, disable this rule for the expression.
โ eslint(no-unused-vars): Variable 'layer' is declared but never used. Unused variables should start with a '_'.
โญโ[apps/server/src/serverRuntimeStartup.ts:728:7]
727 โ
728 โ const layer = layerWithOptions();
ยท โโโฌโโ
ยท โฐโโ 'layer' is declared here
โฐโโโโ
help: Consider removing this declaration.
โ unicorn(require-module-specifiers): Empty import specifier is not allowed
โญโ[apps/server/src/sourceControl/SourceControlProviderRegistry.ts:15:13]
14 โ } from "@t3tools/contracts";
15 โ import type {} from "@t3tools/contracts";
ยท โโ
16 โ import { detectSourceControlProviderFromRemoteUrl } from "@t3tools/shared/sourceControl";
โฐโโโโ
help: Remove empty braces
โ t3code(no-inline-schema-compile): Hoist Schema.encodeUnknownSync(...) to module scope: both the inline schema literal and the compiled function are rebuilt on every call. Move the compiled function to a module-level const.
โญโ[packages/contracts/src/baseSchemas.test.ts:39:9]
38 โ JSON.stringify(
39 โ Schema.encodeUnknownSync(Schema.toCodecJson(Named))([
ยท โโโโโโโโโโโโโโโโโโโโโโโโ
40 โ { name: "a" },
โฐโโโโ
โ t3code(no-polling-loop-in-tests): Polling loop in a test. Spinning on `yieldNow`/`sleep` is scheduler- and load-dependent. Await the `Deferred`, `Queue.take`, `Stream` element, `drain()`, or `expect.poll` that marks the milestone.
โญโ[packages/shared/src/atomicWrite.test.ts:139:5]
138 โ Effect.gen(function* () {
139 โ โญโโถ while (fiber.pollUnsafe() === undefined) {
140 โ โ yield* TestClock.adjust("100 millis");
141 โ โ // oxlint-disable-next-line t3code/no-real-time-wait-in-tests -- a macrotask boundary so the real stat I/O can finish; time moves only via TestClock
142 โ โ yield* Effect.promise(() => new Promise((resolve) => setImmediate(resolve)));
143 โ โฐโโถ }
144 โ return yield* Fiber.join(fiber);
โฐโโโโ
โ unicorn(require-module-specifiers): Empty import specifier is not allowed
โญโ[packages/contracts/src/rpc.ts:297:8]
296 โ } from "./device.ts";
297 โ import {} from "./previewAutomation.ts";
ยท โโ
298 โ import {
โฐโโโโ
help: Remove empty braces
โ eslint(no-unused-vars): Identifier 'Fiber' is imported but never used.
โญโ[apps/server/src/ws.ts:10:13]
9 โ import * as Effect from "effect/Effect";
10 โ import * as Fiber from "effect/Fiber";
ยท โโโฌโโ
ยท โฐโโ 'Fiber' is imported here
11 โ import * as FileSystem from "effect/FileSystem";
โฐโโโโ
help: Consider removing this import.
โ eslint(no-unused-vars): Identifier 'Schedule' is imported but never used.
โญโ[apps/server/src/ws.ts:17:13]
16 โ import * as Ref from "effect/Ref";
17 โ import * as Schedule from "effect/Schedule";
ยท โโโโโฌโโโ
ยท โฐโโ 'Schedule' is imported here
18 โ import * as Schema from "effect/Schema";
โฐโโโโ
help: Consider removing this import.
โ eslint(no-unused-vars): Variable 'projectSetupScriptRunner' is declared but never used. Unused variables should start with a '_'.
โญโ[apps/server/src/ws.ts:1285:13]
1284 โ const usageLimitSources = yield* UsageLimitSources.UsageLimitSources;
1285 โ const projectSetupScriptRunner = yield* ProjectSetupScriptRunner.ProjectSetupScriptRunner;
ยท โโโโโโโโโโโโโฌโโโโโโโโโโโ
ยท โฐโโ 'projectSetupScriptRunner' is declared here
1286 โ const worktreeSetupTracker = yield* WorktreeSetupTracker.WorktreeSetupTracker;
โฐโโโโ
help: Consider removing this declaration.
โ eslint(no-unused-vars): Identifier 'identity' is imported but never used.
โญโ[apps/server/src/auth/http.ts:28:10]
27 โ import * as Schema from "effect/Schema";
28 โ import { identity } from "effect/Function";
ยท โโโโโฌโโโ
ยท โฐโโ 'identity' is imported here
29 โ import * as Layer from "effect/Layer";
โฐโโโโ
help: Consider removing this import.
โ t3code(no-inline-schema-compile): Hoist Schema.decodeUnknownSync(...) to module scope: the compiled function is rebuilt on every call. Move it to a module-level const.
โญโ[apps/server/src/auth/RpcAuthorization.ts:237:17]
236 โ const requiredScopesForSettingsUpdate = (payload: unknown) => {
237 โ const input = Schema.decodeUnknownSync(SettingsUpdate)(payload);
ยท โโโโโโโโโโโโโโโโโโโโโโโโ
238 โ const scopes = requiredScopesForServerSettingsPatch(input.patch);
โฐโโโโ
โ t3code(no-inline-schema-compile): Hoist Schema.decodeUnknownSync(...) to module scope: the compiled function is rebuilt on every call. Move it to a module-level const.
โญโ[apps/server/src/auth/RpcAuthorization.ts:256:26]
255 โ if (method === WS_METHODS.assetsCreateUrl) {
256 โ const { resource } = Schema.decodeUnknownSync(AssetCreateUrlInput)(payload);
ยท โโโโโโโโโโโโโโโโโโโโโโโโ
257 โ return [
โฐโโโโ
โ eslint(no-unused-vars): Function 'resolveThreadWorkspaceCwd' is declared but never used.
โญโ[apps/server/src/checkpointing/Utils.ts:12:10]
11 โ
12 โ function resolveThreadWorkspaceCwd(input: {
ยท โโโโโโโโโโโโโฌโโโโโโโโโโโโ
ยท โฐโโ 'resolveThreadWorkspaceCwd' is declared here
13 โ readonly thread: {
โฐโโโโ
help: Consider removing this declaration.
โ eslint(no-unused-vars): Function 'nonEmptyString' is declared but never used.
โญโ[packages/client-runtime/src/work-log/presentation.ts:234:10]
233 โ
234 โ function nonEmptyString(value: unknown): string | null {
ยท โโโโโโโโฌโโโโโโ
ยท โฐโโ 'nonEmptyString' is declared here
235 โ return typeof value === "string" && value.trim().length > 0 ? value : null;
โฐโโโโ
help: Consider removing this declaration.
โ unicorn(no-useless-fallback-in-spread): Empty fallbacks in spreads are unnecessary
โญโ[packages/shared/src/serverSettings.ts:346:9]
345 โ const entry: ProjectSettingsOverrides = {
346 โ ...(entries.get(projectId) ?? currentEntries[projectId] ?? {}),
ยท โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
347 โ };
โฐโโโโ
help: Spreading falsy values in object literals won't add any unexpected properties, so it's unnecessary to add an empty object as fallback.
โ oxc(no-accumulating-spread): Do not spread accumulators in Array.prototype.reduce()
โญโ[packages/shared/src/serverSettings.ts:448:24]
447 โ const favorites =
448 โ setModelFavorites?.reduce((current, change) => {
ยท โโโโฌโโ
ยท โฐโโ For this reduce
449 โ const exists = current.some(
450 โ (favorite) => favorite.provider === change.provider && favorite.model === change.model,
451 โ );
452 โ return change.favorite
453 โ ? exists
454 โ ? current
455 โ : [...current, { provider: change.provider, model: change.model }]
ยท โโโโโโฌโโโโ
ยท โฐโโ From this spread
456 โ : current.filter(
โฐโโโโ
help: Consider using `Object.assign()` or `Array.prototype.push()` to mutate the accumulator instead.
note: Using spreads within accumulators leads to `O(n^2)` time complexity.
โ oxc(no-accumulating-spread): Do not spread accumulators in loops
โญโ[packages/shared/src/serverSettings.ts:466:3]
464 โ null;
465 โ let nextModelPreferences = initialModelPreferences;
ยท โโโโโโโโโโโฌโโโโโโโโโ
ยท โฐโโ From this accumulator
466 โ for (const change of setModelsHidden ?? []) {
ยท โโฌโ
ยท โฐโโ For this loop
467 โ const preferences = nextModelPreferences?.[change.provider] ?? {
468 โ hiddenModels: [],
469 โ modelOrder: [],
470 โ };
471 โ const hiddenModels = preferences.hiddenModels.filter((model) => model !== change.model);
472 โ if (change.hidden) hiddenModels.push(change.model);
473 โ nextModelPreferences = {
474 โ ...nextModelPreferences,
ยท โโโโโโโโโโโโฌโโโโโโโโโโโ
ยท โฐโโ From this spread
475 โ [change.provider]: { ...preferences, hiddenModels },
โฐโโโโ
help: Consider using `Object.assign()` to mutate the accumulator instead.
note: Using spreads within accumulators leads to `O(n^2)` time complexity.
โ t3code(no-inline-schema-compile): Hoist Schema.decodeUnknownSync(...) to module scope: the compiled function is rebuilt on every call. Move it to a module-level const.
โญโ[packages/contracts/src/auth.test.ts:17:12]
16 โ it("decodes legacy review credentials without offering them in new grants", () => {
17 โ expect(Schema.decodeUnknownSync(AuthEnvironmentScopes)(["review:write"])).toEqual([
ยท โโโโโโโโโโโโโโโโโโโโโโโโ
18 โ "review:write",
โฐโโโโ
โ t3code(no-inline-schema-compile): Hoist Schema.decodeUnknownSync(...) to module scope: the compiled function is rebuilt on every call. Move it to a module-level const.
โญโ[packages/contracts/src/auth.test.ts:20:18]
19 โ ]);
20 โ expect(() => Schema.decodeUnknownSync(AuthGrantScopes)(["review:write"])).toThrow();
ยท โโโโโโโโโโโโโโโโโโโโโโโโ
21 โ expect(AuthStandardClientScopes).not.toContain("review:write");
โฐโโโโ
โ t3code(no-inline-schema-compile): Hoist Schema.decodeUnknownSync(...) to module scope: the compiled function is rebuilt on every call. Move it to a module-level const.
โญโ[packages/contracts/src/auth.test.ts:58:21]
57 โ it("ignores unknown response permissions without falling back to broader scopes", () => {
58 โ const session = Schema.decodeUnknownSync(AuthSessionState)({
ยท โโโโโโโโโโโโโโโโโโโโโโโโ
59 โ authenticated: true,
โฐโโโโ
โ unicorn(prefer-array-find): Prefer `find` over filtering and accessing the first result.
โญโ[packages/client-runtime/src/operations/projects.ts:228:51]
227 โ ): string {
228 โ const folderName = workspaceRoot.split(/[\\/]/).filter(Boolean).at(-1) ?? "";
ยท โโโโโโ
229 โ return target.owner ? `${target.owner}/${folderName}` : folderName;
โฐโโโโ
help: Use `find(predicate)` instead of `filter(predicate)[0]` or similar patterns.
โ t3code(no-inline-schema-compile): Hoist Schema.decodeUnknownOption(...) to module scope: the compiled function is rebuilt on every call. Move it to a module-level const.
โญโ[packages/shared/src/otelEnvironment.ts:146:14]
145 โ name,
146 โ (raw) => Schema.decodeUnknownOption(OtlpProtocol)(raw.toLowerCase()),
ยท โโโโโโโโโโโโโโโโโโโโโโโโโโ
147 โ `${name} is not http/protobuf or http/json, ${NOT_EXPORTED}`,
โฐโโโโ
โ eslint(no-empty-pattern): Empty array binding pattern
โญโ[apps/server/src/pullRequest/PullRequestService.test.ts:1526:12]
1525 โ
1526 โ for (const [] of [
ยท โโ
1527 โ ["github", "github.com"],
โฐโโโโ
help: Passing non-iterable values (null, undefined, numbers, booleans, etc.) will result in a runtime error because these values are not iterable.
โ react(exhaustive-effect-dependencies): Found extra effect dependencies
โญโ[apps/mobile/src/features/home/HomeScreen.tsx:533:25]
532 โ // range) the boundary string is identical and the chain would die.
533 โ }, [nextSnoozeWakeAt, snoozeWakeTick]);
ยท โโโโโโโโฌโโโโโโ
ยท โฐโโ Unnecessary dependency `snoozeWakeTick`
534 โ const v2SearchQuery = props.searchQuery.trim().toLocaleLowerCase();
โฐโโโโ
help: Extra dependencies can cause an effect to fire more often than it should, resulting in performance problems such as excessive renders and side effects
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/exhaustive-deps
โ react(purity): Cannot call impure function during render
โญโ[apps/mobile/src/features/home/HomeScreen.tsx:524:53]
523 โ if (Number.isNaN(wakeAtMs)) return;
524 โ const delayMs = Math.min(Math.max(0, wakeAtMs - Date.now()) + 50, 2_147_483_647);
ยท โโโโโโฌโโโโ
ยท โฐโโ Cannot call impure function
525 โ const id = setTimeout(() => {
โฐโโโโ
help: `Date.now` is an impure function. Calling an impure function can produce unstable results that update unpredictably when the component re-renders
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/purity
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/features/home/thread-swipe-actions.tsx:494:27]
493 โ >
494 โ {props.children(close)}
ยท โโโฌโโ
ยท โฐโโ Cannot access ref value during render
495 โ </ReanimatedSwipeable>
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ t3code(no-inline-schema-compile): Hoist Schema.encodeUnknownSync(...) to module scope: both the inline schema literal and the compiled function are rebuilt on every call. Move the compiled function to a module-level const.
โญโ[packages/contracts/src/composerContext.test.ts:181:18]
180 โ it("sends a message without the records the wire cannot carry", () => {
181 โ const wire = Schema.encodeUnknownSync(Schema.toCodecJson(OrchestrationMessageContext))({
ยท โโโโโโโโโโโโโโโโโโโโโโโโ
182 โ version: 1,
โฐโโโโ
โ t3code(no-polling-loop-in-tests): Polling loop in a test. Spinning on `yieldNow`/`sleep` is scheduler- and load-dependent. Await the `Deferred`, `Queue.take`, `Stream` element, `drain()`, or `expect.poll` that marks the milestone.
โญโ[packages/client-runtime/src/connection/supervisor.test.ts:135:3]
134 โ let lastState = yield* SubscriptionRef.get(state);
135 โ โญโโถ for (let iteration = 0; iteration < 100; iteration += 1) {
136 โ โ lastState = yield* SubscriptionRef.get(state);
137 โ โ if (predicate(lastState)) {
138 โ โ return lastState;
139 โ โ }
140 โ โ yield* Effect.yieldNow;
141 โ โฐโโถ }
142 โ return yield* Effect.die(
โฐโโโโ
โ t3code(no-polling-loop-in-tests): Polling loop in a test. Spinning on `yieldNow`/`sleep` is scheduler- and load-dependent. Await the `Deferred`, `Queue.take`, `Stream` element, `drain()`, or `expect.poll` that marks the milestone.
โญโ[packages/client-runtime/src/rpc/client.test.ts:131:9]
130 โ ) {
131 โ โญโโถ for (let attempt = 0; attempt < 100; attempt += 1) {
132 โ โ if (subscriptions.length >= count) {
133 โ โ return;
134 โ โ }
135 โ โ yield* Effect.yieldNow;
136 โ โฐโโถ }
137 โ return yield* Effect.die(new Error(`Expected ${count} durable subscriptions.`));
โฐโโโโ
โ t3code(no-polling-loop-in-tests): Polling loop in a test. Spinning on `yieldNow`/`sleep` is scheduler- and load-dependent. Await the `Deferred`, `Queue.take`, `Stream` element, `drain()`, or `expect.poll` that marks the milestone.
โญโ[packages/client-runtime/src/rpc/client.test.ts:252:7]
251 โ yield* SubscriptionRef.set(activeSession, Option.some(session(firstClient)));
252 โ โญโโถ for (let attempt = 0; attempt < 100 && subscriptions.length < 1; attempt += 1) {
253 โ โ yield* Effect.yieldNow;
254 โ โฐโโถ }
255 โ yield* SubscriptionRef.set(activeSession, Option.none());
โฐโโโโ
โ t3code(no-polling-loop-in-tests): Polling loop in a test. Spinning on `yieldNow`/`sleep` is scheduler- and load-dependent. Await the `Deferred`, `Queue.take`, `Stream` element, `drain()`, or `expect.poll` that marks the milestone.
โญโ[packages/client-runtime/src/rpc/client.test.ts:258:7]
257 โ
258 โ โญโโถ for (let attempt = 0; attempt < 100 && subscriptions.length < 2; attempt += 1) {
259 โ โ yield* Effect.yieldNow;
260 โ โฐโโถ }
261 โ yield* Fiber.interrupt(subscriptionFiber);
โฐโโโโ
โ t3code(no-polling-loop-in-tests): Polling loop in a test. Spinning on `yieldNow`/`sleep` is scheduler- and load-dependent. Await the `Deferred`, `Queue.take`, `Stream` element, `drain()`, or `expect.poll` that marks the milestone.
โญโ[packages/client-runtime/src/rpc/client.test.ts:322:7]
321 โ );
322 โ โญโโถ for (let attempt = 0; attempt < 100 && observedFailures.length < 1; attempt += 1) {
323 โ โ yield* Effect.yieldNow;
324 โ โฐโโถ }
325 โ
โฐโโโโ
โ t3code(no-polling-loop-in-tests): Polling loop in a test. Spinning on `yieldNow`/`sleep` is scheduler- and load-dependent. Await the `Deferred`, `Queue.take`, `Stream` element, `drain()`, or `expect.poll` that marks the milestone.
โญโ[packages/client-runtime/src/rpc/client.test.ts:330:7]
329 โ yield* SubscriptionRef.set(activeSession, Option.some(session(secondClient)));
330 โ โญโโถ for (let attempt = 0; attempt < 100 && subscriptions.length < 2; attempt += 1) {
331 โ โ yield* Effect.yieldNow;
332 โ โฐโโถ }
333 โ yield* Fiber.interrupt(subscriptionFiber);
โฐโโโโ
โ react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders
โญโ[apps/mobile/src/features/files/FileTreeBrowser.tsx:155:5]
150 โ
151 โ useEffect(() => {
ยท โโโโโฌโโโโ
ยท โฐโโ This is the containing effect
152 โ if (!controlledSelectedPath) {
153 โ return;
154 โ }
155 โ setExpandedPaths((current) => {
ยท โโโโโโโโโฌโโโโโโโ
ยท โฐโโ Avoid calling setState() directly within an effect
156 โ const ancestors = ancestorPaths(controlledSelectedPath);
โฐโโโโ
help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system.
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect
โ react(exhaustive-effect-dependencies): Found extra effect dependencies
โญโ[apps/mobile/src/features/files/SourceFileSurface.tsx:257:7]
256 โ return () => cancelAnimationFrame(frame);
257 โ }, [props.path, targetIndex]);
ยท โโโโโโฌโโโโ
ยท โฐโโ Unnecessary dependency `props.path`
258 โ
โฐโโโโ
help: Extra dependencies can cause an effect to fire more often than it should, resulting in performance problems such as excessive renders and side effects
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/exhaustive-deps
โ react(no-array-index-key): Usage of Array index in keys is not allowed
โญโ[apps/mobile/src/features/files/SourceFileSurface.tsx:293:23]
292 โ <SourceText
293 โ key={`${index}:${tokenIndex}`}
ยท โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
294 โ style={{
โฐโโโโ
help: Use a unique data-dependent key to avoid unnecessary rerenders
โ react(no-array-index-key): Usage of Array index in keys is not allowed
โญโ[apps/mobile/src/features/files/SourceFileSurface.tsx:309:27]
308 โ return (
309 โ <SourceText key={index}>
ยท โโโโโโโโโโโ
310 โ {body}
โฐโโโโ
help: Use a unique data-dependent key to avoid unnecessary rerenders
โ t3code(no-polling-loop-in-tests): Polling loop in a test. Spinning on `yieldNow`/`sleep` is scheduler- and load-dependent. Await the `Deferred`, `Queue.take`, `Stream` element, `drain()`, or `expect.poll` that marks the milestone.
โญโ[packages/client-runtime/src/rpc/session.test.ts:226:3]
225 โ ) {
226 โ โญโโถ for (let attempt = 0; attempt < 100; attempt += 1) {
227 โ โ const socket = sockets[index];
228 โ โ if (socket) {
229 โ โ return socket;
230 โ โ }
231 โ โ yield* Effect.yieldNow;
232 โ โฐโโถ }
233 โ return yield* Effect.die(new Error("Expected the RPC protocol to create a websocket."));
โฐโโโโ
โ t3code(no-polling-loop-in-tests): Polling loop in a test. Spinning on `yieldNow`/`sleep` is scheduler- and load-dependent. Await the `Deferred`, `Queue.take`, `Stream` element, `drain()`, or `expect.poll` that marks the milestone.
โญโ[packages/client-runtime/src/rpc/session.test.ts:240:3]
239 โ ) {
240 โ โญโโถ for (let attempt = 0; attempt < 100; attempt += 1) {
241 โ โ const request = socket.sent.map((message) => decodeJson(message)).filter(isRpcRequest)[index];
242 โ โ if (request) {
243 โ โ return request;
244 โ โ }
245 โ โ yield* Effect.yieldNow;
246 โ โฐโโถ }
247 โ return yield* Effect.die(new Error("Expected the RPC protocol to send a request."));
โฐโโโโ
โ typescript(no-this-alias): Unexpected aliasing of 'this' to local variable.
โญโ[apps/web/src/contextMenuFallback.test.ts:38:9]
37 โ get isConnected() {
38 โ let current: FakeElement | null = this;
ยท โโโโโโโ
39 โ while (current?.parent) {
โฐโโโโ
help: Assigning a variable to this instead of properly using arrow lambdas may be a symptom of pre-ES2015 practices or not managing scope well.
โ eslint(require-yield): This generator function does not have `yield`
โญโ[packages/provider-acp/src/server/mcpOverAcpBridge.ts:81:78]
80 โ
81 โ โญโโถ export const makeAcpMcpOverAcpBridge = Effect.fn("AcpMcpOverAcpBridge.make")(function* (
82 โ โ options: AcpMcpOverAcpBridgeOptions,
83 โ โ ): Effect.fn.Return<AcpMcpOverAcpBridge> {
84 โ โ const fetchImplementation = options.fetchImplementation ?? fetch;
85 โ โ const connections = new Map<string, Connection>();
86 โ โ
87 โ โ const connectionFor = (connectionId: string): Effect.Effect<Connection, AcpMcpOverAcpError> =>
88 โ โ Effect.suspend(() => {
89 โ โ const connection = connections.get(connectionId);
90 โ โ return connection === undefined
91 โ โ ? Effect.fail(new AcpMcpOverAcpError(`Unknown MCP-over-ACP connection "${connectionId}".`))
92 โ โ : Effect.succeed(connection);
93 โ โ });
94 โ โ
95 โ โ const send = (
96 โ โ connection: Connection,
97 โ โ message: unknown,
98 โ โ ): Effect.Effect<ReadonlyArray<unknown>, AcpMcpOverAcpError> =>
99 โ โ connection.mutex.withPermits(1)(
100 โ โ Effect.gen(function* () {
101 โ โ const body = JSON.stringify(message);
102 โ โ if (Buffer.byteLength(body) > MAX_MESSAGE_BYTES) {
103 โ โ return yield* Effect.fail(new AcpMcpOverAcpError("MCP-over-ACP message exceeds 8 MiB."));
104 โ โ }
105 โ โ const response = yield* Effect.tryPromise({
106 โ โ try: (signal) =>
107 โ โ fetchImplementation(options.endpoint, {
108 โ โ method: "POST",
109 โ โ signal,
110 โ โ headers: {
111 โ โ "content-type": "application/json",
112 โ โ accept: "application/json, text/event-stream",
113 โ โ authorization: options.authorization,
114 โ โ ...(connection.sessionId === null
115 โ โ ? {}
116 โ โ : { "mcp-session-id": connection.sessionId }),
117 โ โ ...(connection.protocolVersion === null
118 โ โ ? {}
119 โ โ : { "mcp-protocol-version": connection.protocolVersion }),
120 โ โ },
121 โ โ body,
122 โ โ }),
123 โ โ catch: bridgeError,
124 โ โ });
125 โ โ connection.sessionId = response.headers.get("mcp-session-id") ?? connection.sessionId;
126 โ โ if (!response.ok) {
127 โ โ yield* Effect.promise(
128 โ โ () => response.body?.cancel().catch(() => undefined) ?? Promise.resolve(),
129 โ โ );
130 โ โ return yield* Effect.fail(
131 โ โ new AcpMcpOverAcpError(`T3 Code MCP endpoint responded with HTTP ${response.status}.`),
132 โ โ );
133 โ โ }
134 โ โ const payloads = [...(yield* Stream.runCollect(responsePayloads(response, bridgeError)))];
135 โ โ for (const payload of payloads) {
136 โ โ connection.protocolVersion = protocolVersionOf(payload) ?? connection.protocolVersion;
137 โ โ }
138 โ โ return payloads;
139 โ โ }).pipe(Effect.mapError(bridgeError)),
140 โ โ );
141 โ โ
142 โ โ const disconnect = Effect.fn("mcpOverAcpBridge.disconnect")(function* (
143 โ โ request: AcpSchema.DisconnectMcpRequest,
144 โ โ ): Effect.fn.Return<AcpSchema.DisconnectMcpResponse, AcpMcpOverAcpError> {
145 โ โ const connection = yield* connectionFor(request.connectionId);
146 โ โ connections.delete(request.connectionId);
147 โ โ const sessionId = connection.sessionId;
148 โ โ if (sessionId !== null) {
149 โ โ const response = yield* Effect.tryPromise({
150 โ โ try: (signal) =>
151 โ โ fetchImplementation(options.endpoint, {
152 โ โ method: "DELETE",
153 โ โ signal,
154 โ โ headers: {
155 โ โ authorization: options.authorization,
156 โ โ "mcp-session-id": sessionId,
157 โ โ ...(connection.protocolVersion === null
158 โ โ ? {}
159 โ โ : { "mcp-protocol-version": connection.protocolVersion }),
160 โ โ },
161 โ โ }),
162 โ โ catch: bridgeError,
163 โ โ });
164 โ โ if (!response.ok && response.status !== 404) {
165 โ โ return yield* Effect.fail(
166 โ โ new AcpMcpOverAcpError(
167 โ โ `T3 Code MCP endpoint rejected disconnect with HTTP ${response.status}.`,
168 โ โ ),
169 โ โ );
170 โ โ }
171 โ โ yield* Effect.promise(
172 โ โ () => response.body?.cancel().catch(() => undefined) ?? Promise.resolve(),
173 โ โ );
174 โ โ }
175 โ โ return {};
176 โ โ });
177 โ โ
178 โ โ return {
179 โ โ connect: Effect.fn("mcpOverAcpBridge.connect")(function* (request) {
180 โ โ if (request.serverId !== "t3-code") {
181 โ โ return yield* Effect.fail(
182 โ โ new AcpMcpOverAcpError(`Unknown ACP MCP server "${request.serverId}".`),
183 โ โ );
184 โ โ }
185 โ โ if (connections.size >= MAX_CONNECTIONS) {
186 โ โ return yield* Effect.fail(new AcpMcpOverAcpError("Too many MCP-over-ACP connections."));
187 โ โ }
188 โ โ const connectionId = yield* options.allocateConnectionId;
189 โ โ connections.set(connectionId, {
190 โ โ mutex: yield* Semaphore.make(1),
191 โ โ sessionId: null,
192 โ โ protocolVersion: null,
193 โ โ nextRequestId: 0,
194 โ โ });
195 โ โ return { connectionId };
196 โ โ }),
197 โ โ message: Effect.fn("mcpOverAcpBridge.message")(function* (request) {
198 โ โ const connection = yield* connectionFor(request.connectionId);
199 โ โ const id = ++connection.nextRequestId;
200 โ โ const payloads = yield* send(connection, {
201 โ โ jsonrpc: "2.0",
202 โ โ id,
203 โ โ method: request.method,
204 โ โ ...(request.params == null ? {} : { params: request.params }),
205 โ โ });
206 โ โ const response = payloads.find((payload) => asEnvelope(payload)?.id === id);
207 โ โ const envelope = asEnvelope(response);
208 โ โ if (envelope === null) {
209 โ โ return yield* Effect.fail(
210 โ โ new AcpMcpOverAcpError("MCP server did not return a matching response."),
211 โ โ );
212 โ โ }
213 โ โ if (envelope.error !== undefined) {
214 โ โ return yield* Effect.fail(new AcpMcpOverAcpError(errorMessage(envelope.error)));
215 โ โ }
216 โ โ return (envelope.result ?? null) as AcpSchema.MessageMcpResponse;
217 โ โ }),
218 โ โ notification: Effect.fn("mcpOverAcpBridge.notification")(function* (request) {
219 โ โ const connection = yield* connectionFor(request.connectionId);
220 โ โ yield* send(connection, {
221 โ โ jsonrpc: "2.0",
222 โ โ method: request.method,
223 โ โ ...(request.params == null ? {} : { params: request.params }),
224 โ โ });
225 โ โ }),
226 โ โ disconnect,
227 โ โ dispose: Effect.suspend(() =>
228 โ โ Effect.forEach(
229 โ โ [...connections.keys()],
230 โ โ (connectionId) => disconnect({ connectionId }).pipe(Effect.ignore),
231 โ โ { discard: true },
232 โ โ ),
233 โ โ ),
234 โ โ };
235 โ โฐโโถ });
โฐโโโโ
help: Add a `yield` expression inside the generator body, or convert it to a regular function if iteration behavior is not needed.
โ eslint(no-unused-vars): Function 'summarizePayload' is declared but never used.
โญโ[packages/provider-acp/src/server/nativeLogging.ts:22:10]
21 โ
22 โ function summarizePayload(payload: unknown): Readonly<Record<string, unknown>> {
ยท โโโโโโโโโฌโโโโโโโ
ยท โฐโโ 'summarizePayload' is declared here
23 โ if (payload === null) return { valueType: "null" };
โฐโโโโ
help: Consider removing this declaration.
โ eslint(no-unused-vars): Variable 'layerTest' is declared but never used. Unused variables should start with a '_'.
โญโ[apps/server/src/telemetry/AnalyticsService.ts:340:7]
339 โ
340 โ const layerTest = AnalyticsService.layerTest;
ยท โโโโโฌโโโโ
ยท โฐโโ 'layerTest' is declared here
โฐโโโโ
help: Consider removing this declaration.
โ t3code(no-inline-schema-compile): Hoist Schema.decodeUnknownEffect(...) to module scope: both the inline schema literal and the compiled function are rebuilt on every call. Move the compiled function to a module-level const.
โญโ[packages/effect-acp/src/protocol.test.ts:500:31]
499 โ
500 โ const response = yield* Schema.decodeUnknownEffect(
ยท โโโโโโโโโโโโโโโโโโโโโโโโโโ
501 โ Schema.fromJsonString(JsonRpcErrorResponse),
โฐโโโโ
โ eslint(no-unused-vars): Identifier 'Arr' is imported but never used.
โญโ[packages/client-runtime/src/state/threadSort.ts:4:13]
3 โ import type { EnvironmentThreadShell } from "./models.ts";
4 โ import * as Arr from "effect/Array";
ยท โโฌโ
ยท โฐโโ 'Arr' is imported here
5 โ import * as Order from "effect/Order";
โฐโโโโ
help: Consider removing this import.
โ eslint(no-unused-vars): Identifier 'Order' is imported but never used.
โญโ[packages/client-runtime/src/state/threadSort.ts:5:13]
4 โ import * as Arr from "effect/Array";
5 โ import * as Order from "effect/Order";
ยท โโโฌโโ
ยท โฐโโ 'Order' is imported here
6 โ
โฐโโโโ
help: Consider removing this import.
โ react(capitalized-calls): Capitalized function called without JSX
โญโ[apps/mobile/src/features/threads/ThreadQueueControl.tsx:602:27]
601 โ const onEnd = useEffectEvent((y: number, success: boolean) => props.onEnd(y, success));
602 โ const gesture = Gesture.Pan()
ยท โโฌโ
ยท โฐโโ `Pan` may be a component
603 โ .enabled(!props.disabled)
โฐโโโโ
help: Render `Pan` with JSX if it is a component; otherwise rename it to start with a lowercase letter or allowlist it in the compiler configuration
note: `Pan` is treated as a component because it begins with an uppercase letter; React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/static-components
โ eslint(no-unused-vars): Parameter '_' is declared but never used.
โญโ[packages/shared/src/qrCode.ts:458:44]
457 โ ): Array<byte> {
458 โ let result: Array<byte> = divisor.map((_) => 0);
ยท โฌ
ยท โฐโโ '_' is declared here
459 โ for (const b of data) {
โฐโโโโ
help: Consider removing this parameter.
โ t3code(no-polling-loop-in-tests): Polling loop in a test. Spinning on `yieldNow`/`sleep` is scheduler- and load-dependent. Await the `Deferred`, `Queue.take`, `Stream` element, `drain()`, or `expect.poll` that marks the milestone.
โญโ[packages/client-runtime/src/state/threads-sync.test.ts:1228:7]
1227 โ yield* harness.replaceSession;
1228 โ โญโโถ for (let attempt = 0; attempt < 100; attempt += 1) {
1229 โ โ if ((yield* Ref.get(harness.subscriptionCount)) >= 2) {
1230 โ โ break;
1231 โ โ }
1232 โ โ yield* Effect.yieldNow;
1233 โ โฐโโถ }
1234 โ yield* Queue.offer(
โฐโโโโ
โ t3code(no-polling-loop-in-tests): Polling loop in a test. Spinning on `yieldNow`/`sleep` is scheduler- and load-dependent. Await the `Deferred`, `Queue.take`, `Stream` element, `drain()`, or `expect.poll` that marks the milestone.
โญโ[packages/client-runtime/src/state/threads-sync.test.ts:1337:7]
1336 โ yield* harness.replaceSession;
1337 โ โญโโถ for (let attempt = 0; attempt < 100; attempt += 1) {
1338 โ โ if ((yield* Ref.get(harness.subscriptionCount)) >= 2) break;
1339 โ โ yield* Effect.yieldNow;
1340 โ โฐโโถ }
1341 โ expect(yield* Ref.get(harness.subscriptionCount)).toBe(2);
โฐโโโโ
โ eslint(no-unused-vars): Type 'AuthSessionState' is imported but never used.
โญโ[packages/client-runtime/src/state/usageAccess.ts:3:8]
2 โ AuthDiagnosticsReadScope,
3 โ type AuthSessionState,
ยท โโโโโโโโโฌโโโโโโโ
ยท โฐโโ 'AuthSessionState' is imported here
4 โ sessionGrantsScope,
โฐโโโโ
help: Consider removing this import.
โ t3code(no-polling-loop-in-tests): Polling loop in a test. Spinning on `yieldNow`/`sleep` is scheduler- and load-dependent. Await the `Deferred`, `Queue.take`, `Stream` element, `drain()`, or `expect.poll` that marks the milestone.
โญโ[packages/client-runtime/src/state/shell-sync.test.ts:169:7]
168 โ });
169 โ โญโโถ for (let index = 0; index < 100; index += 1) {
170 โ โ if ((yield* SubscriptionRef.get(shellState)).status === "synchronizing") break;
171 โ โ yield* Effect.yieldNow;
172 โ โฐโโถ }
173 โ
โฐโโโโ
โ t3code(no-polling-loop-in-tests): Polling loop in a test. Spinning on `yieldNow`/`sleep` is scheduler- and load-dependent. Await the `Deferred`, `Queue.take`, `Stream` element, `drain()`, or `expect.poll` that marks the milestone.
โญโ[packages/client-runtime/src/state/shell-sync.test.ts:178:7]
177 โ yield* Deferred.succeed(releaseSave, undefined);
178 โ โญโโถ for (let index = 0; index < 100; index += 1) {
179 โ โ if ((yield* Ref.get(saved)).length > 0) break;
180 โ โ yield* Effect.yieldNow;
181 โ โฐโโถ }
182 โ
โฐโโโโ
โ t3code(no-polling-loop-in-tests): Polling loop in a test. Spinning on `yieldNow`/`sleep` is scheduler- and load-dependent. Await the `Deferred`, `Queue.take`, `Stream` element, `drain()`, or `expect.poll` that marks the milestone.
โญโ[packages/client-runtime/src/state/shell-sync.test.ts:307:7]
306 โ yield* Deferred.succeed(releaseUnenrichedSave, undefined);
307 โ โญโโถ for (let index = 0; index < 100; index += 1) {
308 โ โ const values = yield* Ref.get(saved);
309 โ โ if (values.length > 0 && values.at(-1)?.projects[0]?.repositoryIdentity != null) {
310 โ โ break;
311 โ โ }
312 โ โ yield* Effect.yieldNow;
313 โ โฐโโถ }
314 โ
โฐโโโโ
โ eslint(no-unused-vars): Type 'EnvironmentId' is imported but never used.
โญโ[packages/client-runtime/src/state/sharedSettings.ts:2:3]
1 โ import type {
2 โ EnvironmentId,
ยท โโโโโโโฌโโโโโโ
ยท โฐโโ 'EnvironmentId' is imported here
3 โ ExecutionEnvironmentCapabilities,
โฐโโโโ
help: Consider removing this import.
โ eslint(no-empty-pattern): Empty object binding pattern
โญโ[apps/server/src/provider/Drivers/CodexDriver.test.ts:466:14]
465 โ
466 โ for (const {} of ["direct", "wrapper"] as const) {
ยท โโ
467 โ }
โฐโโโโ
help: Passing `null` or `undefined` will result in runtime error because `null` and `undefined` cannot be destructured.
โ eslint(no-unused-vars): Parameter 'stopSessions' is declared but never used. Unused parameters should start with a '_'.
โญโ[apps/server/src/provider/AntigravityAuth.ts:285:20]
284 โ },
285 โ (effect, flow, stopSessions) =>
ยท โโโโโโโฌโโโโโ
ยท โฐโโ 'stopSessions' is declared here
286 โ effect.pipe(
โฐโโโโ
help: Consider removing this parameter.
โ eslint(no-unused-vars): Type 'Scope' is imported but never used.
โญโ[apps/server/src/provider/ProviderAuthService.ts:15:18]
14 โ import * as Layer from "effect/Layer";
15 โ import type * as Scope from "effect/Scope";
ยท โโโฌโโ
ยท โฐโโ 'Scope' is imported here
16 โ import * as Stream from "effect/Stream";
โฐโโโโ
help: Consider removing this import.
โ t3code(no-inline-schema-compile): Hoist Schema.is(...) to module scope: the compiled function is rebuilt on every call. Move it to a module-level const.
โญโ[packages/effect-codex-app-server/src/schema.test.ts:50:18]
49 โ for (const tool of ["sendMessage", "followupTask", "interruptAgent", "listAgents"]) {
50 โ assert.equal(Schema.is(CodexSchema.ServerNotification__CollabAgentTool)(tool), true);
ยท โโโโโโโโโ
51 โ assert.equal(Schema.is(CodexSchema.V2ThreadResumeResponse__CollabAgentTool)(tool), true);
โฐโโโโ
โ t3code(no-inline-schema-compile): Hoist Schema.is(...) to module scope: the compiled function is rebuilt on every call. Move it to a module-level const.
โญโ[packages/effect-codex-app-server/src/schema.test.ts:51:18]
50 โ assert.equal(Schema.is(CodexSchema.ServerNotification__CollabAgentTool)(tool), true);
51 โ assert.equal(Schema.is(CodexSchema.V2ThreadResumeResponse__CollabAgentTool)(tool), true);
ยท โโโโโโโโโ
52 โ }
โฐโโโโ
โ t3code(no-inline-schema-compile): Hoist Schema.is(...) to module scope: the compiled function is rebuilt on every call. Move it to a module-level const.
โญโ[packages/effect-codex-app-server/src/schema.test.ts:55:5]
54 โ assert.equal(
55 โ Schema.is(CodexSchema.ServerNotification__CollabAgentToolCallStatus)("interrupted"),
ยท โโโโโโโโโ
56 โ true,
โฐโโโโ
โ t3code(no-inline-schema-compile): Hoist Schema.is(...) to module scope: the compiled function is rebuilt on every call. Move it to a module-level const.
โญโ[packages/effect-codex-app-server/src/schema.test.ts:59:5]
58 โ assert.equal(
59 โ Schema.is(CodexSchema.V2ThreadResumeResponse__CollabAgentToolCallStatus)("interrupted"),
ยท โโโโโโโโโ
60 โ true,
โฐโโโโ
โ t3code(no-inline-schema-compile): Hoist Schema.is(...) to module scope: the compiled function is rebuilt on every call. Move it to a module-level const.
โญโ[packages/effect-codex-app-server/src/schema.test.ts:103:16]
102 โ
103 โ assert.equal(Schema.is(CodexSchema.V2ThreadResumeResponse)(resumeResponse), true);
ยท โโโโโโโโโ
104 โ });
โฐโโโโ
โ eslint(no-empty-pattern): Empty object binding pattern
โญโ[apps/server/src/process/externalLauncher.test.ts:186:12]
185 โ
186 โ for (const {} of ["darwin", "linux"] as const) {
ยท โโ
187 โ }
โฐโโโโ
help: Passing `null` or `undefined` will result in runtime error because `null` and `undefined` cannot be destructured.
โ eslint(no-empty-pattern): Empty object binding pattern
โญโ[apps/server/src/process/externalLauncher.test.ts:189:12]
188 โ
189 โ for (const {} of [
ยท โโ
190 โ { kind: "browser", folderVerb: "none" },
โฐโโโโ
help: Passing `null` or `undefined` will result in runtime error because `null` and `undefined` cannot be destructured.
โ eslint(no-empty-pattern): Empty object binding pattern
โญโ[apps/server/src/process/externalLauncher.test.ts:311:12]
310 โ
311 โ for (const {} of ["rejected", "spawn-error", "stalled"] as const) {
ยท โโ
312 โ }
โฐโโโโ
help: Passing `null` or `undefined` will result in runtime error because `null` and `undefined` cannot be destructured.
โ eslint(no-empty-pattern): Empty object binding pattern
โญโ[apps/server/src/process/externalLauncher.test.ts:314:12]
313 โ
314 โ for (const {} of [
ยท โโ
315 โ {
โฐโโโโ
help: Passing `null` or `undefined` will result in runtime error because `null` and `undefined` cannot be destructured.
โ oxc(no-accumulating-spread): Do not spread accumulators in loops
โญโ[packages/client-runtime/src/state/shell.ts:189:5]
186 โ let waiting = yield* Ref.get(awaitingCompletion);
187 โ let next = initial;
ยท โโโฌโ
ยท โฐโโ From this accumulator
188 โ let receivedSnapshot = false;
189 โ for (const item of items) {
ยท โโฌโ
ยท โฐโโ For this loop
190 โ if (item.kind === "synchronized") {
191 โ waiting = false;
192 โ if (Option.isSome(next.snapshot)) {
193 โ next = { ...next, status: "live", error: Option.none() };
ยท โโโโฌโโโ
ยท โฐโโ From this spread
194 โ }
โฐโโโโ
help: Consider using `Object.assign()` to mutate the accumulator instead.
note: Using spreads within accumulators leads to `O(n^2)` time complexity.
โ t3code(no-inline-schema-compile): Hoist Schema.is(...) to module scope: both the inline schema literal and the compiled function are rebuilt on every call. Move the compiled function to a module-level const.
โญโ[apps/server/src/provider/acp/AntigravityProtocol.ts:263:20]
262 โ ...(update._meta !== undefined
263 โ ? { _meta: Schema.is(Schema.Record(Schema.String, Schema.Json))(meta) ? meta : null }
ยท โโโโโโโโโ
264 โ : {}),
โฐโโโโ
โ eslint(no-unused-vars): Type 'AuthSessionState' is imported but never used.
โญโ[packages/client-runtime/src/state/filesystem.ts:3:8]
2 โ AuthFilesystemReadScope,
3 โ type AuthSessionState,
ยท โโโโโโโโโฌโโโโโโโ
ยท โฐโโ 'AuthSessionState' is imported here
4 โ type FilesystemBrowseEntry,
โฐโโโโ
help: Consider removing this import.
โ unicorn(prefer-set-has): should be a `Set`, and use `.has()` to check existence or non-existence.
โญโ[apps/web/src/components/chat/useComposerSend.ts:985:13]
984 โ const changedBeforeDecline = draftChangedSinceSend();
985 โ โญโโถ const pendingIdsBeforeDecline = pendingApprovalsRef.current.map(
986 โ โ (approval) => approval.requestId,
987 โ โฐโโถ );
988 โ const approvalResponding = approvalsToDecline.some((approval) =>
โฐโโโโ
help: Switch to `Set`
โ eslint(no-unused-vars): Type 'ThreadRunSummary' is imported but never used.
โญโ[apps/web/src/types.ts:22:3]
21 โ EnvironmentThreadShell,
22 โ ThreadRunSummary,
ยท โโโโโโโโโฌโโโโโโโ
ยท โฐโโ 'ThreadRunSummary' is imported here
23 โ ThreadRuntimeSummary,
โฐโโโโ
help: Consider removing this import.
โ eslint(no-unused-vars): Variable 'layer' is declared but never used. Unused variables should start with a '_'.
โญโ[packages/provider-pi/src/server/adapter.ts:3405:7]
3404 โ
3405 โ const layer: Layer.Layer<ProviderAdapter.ProviderAdapterV2, never, PiAdapterV2DriverEnv> =
ยท โโโฌโโ
ยท โฐโโ 'layer' is declared here
3406 โ Layer.effect(
โฐโโโโ
help: Consider removing this declaration.
โ unicorn(no-array-reverse): Use `Array#toReversed()` instead of `Array#reverse()`.
โญโ[apps/mobile/src/lib/markdownDocument.ts:278:28]
277 โ visit(parser.parse(markdown), false, false);
278 โ for (const edit of edits.reverse())
ยท โโโโโโโ
279 โ markdown = markdown.slice(0, edit.start) + edit.content + markdown.slice(edit.end);
โฐโโโโ
help: `Array#reverse()` mutates the original array. Use `Array#toReversed()` to return a new reversed array without modifying the original.
โ react(capitalized-calls): Capitalized function called without JSX
โญโ[apps/mobile/src/lib/useHoverGesture.ts:8:15]
7 โ () =>
8 โ Gesture.Hover()
ยท โโโฌโโ
ยท โฐโโ `Hover` may be a component
9 โ .manualActivation(true)
โฐโโโโ
help: Render `Hover` with JSX if it is a component; otherwise rename it to start with a lowercase letter or allowlist it in the compiler configuration
note: `Hover` is treated as a component because it begins with an uppercase letter; React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/static-components
โ eslint(no-unused-vars): Identifier 'Duration' is imported but never used.
โญโ[packages/provider-pi/src/server/adapter.test.ts:24:13]
23 โ import * as Deferred from "effect/Deferred";
24 โ import * as Duration from "effect/Duration";
ยท โโโโโฌโโโ
ยท โฐโโ 'Duration' is imported here
25 โ import * as Effect from "effect/Effect";
โฐโโโโ
help: Consider removing this import.
โ react(purity): Cannot call impure function during render
โญโ[apps/web/src/components/chat/useThreadLifecycle.tsx:178:58]
177 โ if (snoozeClockState.shell !== activeThreadShell) {
178 โ setSnoozeClockState({ shell: activeThreadShell, now: new Date().toISOString() });
ยท โโโโโโฌโโโโ
ยท โฐโโ Cannot call impure function
179 โ }
โฐโโโโ
help: `Date` is an impure function. Calling an impure function can produce unstable results that update unpredictably when the component re-renders
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/purity
โ eslint(no-unused-vars): Variable 'layerDaemon' is declared but never used. Unused variables should start with a '_'.
โญโ[apps/server/src/orchestration-v2/EffectWorker.ts:914:7]
913 โ
914 โ const layerDaemon: Layer.Layer<never, never, OrchestrationEffectWorkerV2> = Layer.effectDiscard(
ยท โโโโโโฌโโโโโ
ยท โฐโโ 'layerDaemon' is declared here
915 โ runDaemon.pipe(Effect.forkScoped),
โฐโโโโ
help: Consider removing this declaration.
โ eslint(no-unsafe-optional-chaining): Unsafe usage of optional chaining
โญโ[apps/server/src/orchestration-v2/ThreadLaunchService.test.ts:1783:8]
1782 โ assert.equal(
1783 โ (stored.context?.records[0] as { attachmentId: string }).attachmentId,
ยท โโโโโโโโโโโโโโโโโโโโโโโโโโ
1784 โ stored.attachments[0]?.id,
โฐโโโโ
help: If this short-circuits with 'undefined' the evaluation will throw TypeError
โ unicorn(no-useless-fallback-in-spread): Empty fallbacks in spreads are unnecessary
โญโ[apps/mobile/src/state/use-composer-drafts.ts:1022:15]
1021 โ instanceId,
1022 โ { ...(persisted.modelOptionMemory[instanceId] ?? {}), ...models },
ยท โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
1023 โ ]),
โฐโโโโ
help: Spreading falsy values in object literals won't add any unexpected properties, so it's unnecessary to add an empty object as fallback.
โ react(exhaustive-effect-dependencies): Found extra effect dependencies
โญโ[apps/mobile/src/state/thread-order.ts:29:7]
28 โ getPendingThreadOrder();
29 โ }, [nowMinute, snoozeWakeTick]);
ยท โโโโโฌโโโโ โโโโโโโโฌโโโโโโ
ยท โ โฐโโ Unnecessary dependency `snoozeWakeTick`
ยท โฐโโ Unnecessary dependency `nowMinute`
30 โ return pending;
โฐโโโโ
help: Extra dependencies can cause an effect to fire more often than it should, resulting in performance problems such as excessive renders and side effects
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/exhaustive-deps
โ react(purity): Cannot call impure function during render
โญโ[apps/web/src/components/CustomSnoozeDialog.tsx:140:58]
139 โ {...(weekStartsOn === undefined ? {} : { weekStartsOn })}
140 โ disabled={{ before: new Date(new Date().setHours(0, 0, 0, 0)) }}
ยท โโโโโโฌโโโโ
ยท โฐโโ Cannot call impure function
141 โ onSelect={(selected) => {
โฐโโโโ
help: `Date` is an impure function. Calling an impure function can produce unstable results that update unpredictably when the component re-renders
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/purity
โ react(purity): Cannot call impure function during render
โญโ[apps/web/src/hooks/useThreadActions.ts:821:56]
820 โ const resolved = resolveThreadTarget(target);
821 โ if (resolved && !canSnooze(resolved.thread, { now: new Date().toISOString() })) {
ยท โโโโโโฌโโโโ
ยท โฐโโ Cannot call impure function
822 โ return AsyncResult.failure(
โฐโโโโ
help: `Date` is an impure function. Calling an impure function can produce unstable results that update unpredictably when the component re-renders
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/purity
โ react(purity): Cannot call impure function during render
โญโ[apps/web/src/hooks/useThreadActions.ts:709:46]
708 โ const wokeAt = resolved
709 โ ? threadWokeAt(resolved.thread, { now: new Date().toISOString() })
ยท โโโโโโฌโโโโ
ยท โฐโโ Cannot call impure function
710 โ : null;
โฐโโโโ
help: `Date` is an impure function. Calling an impure function can produce unstable results that update unpredictably when the component re-renders
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/purity
โ eslint(no-empty-pattern): Empty object binding pattern
โญโ[apps/server/src/processRunner.test.ts:266:14]
265 โ
266 โ for (const {} of ["timeout", "success"] as const) {
ยท โโ
267 โ }
โฐโโโโ
help: Passing `null` or `undefined` will result in runtime error because `null` and `undefined` cannot be destructured.
โ eslint(no-unused-vars): Identifier 'HostProcess' is imported but never used.
โญโ[apps/server/src/orchestration-v2/ProviderTurnStartService.ts:25:13]
24 โ import * as Schema from "effect/Schema";
25 โ import * as HostProcess from "@t3tools/shared/HostProcess";
ยท โโโโโโฌโโโโโ
ยท โฐโโ 'HostProcess' is imported here
26 โ
โฐโโโโ
help: Consider removing this import.
โ eslint(no-unused-vars): Variable 'serverConfig' is declared but never used. Unused variables should start with a '_'.
โญโ[apps/server/src/orchestration-v2/ProviderTurnStartService.ts:124:11]
123 โ const path = yield* Path.Path;
124 โ const serverConfig = yield* ServerConfig.ServerConfig;
ยท โโโโโโโฌโโโโโ
ยท โฐโโ 'serverConfig' is declared here
125 โ const serverSettings = yield* ServerSettings.ServerSettingsService;
โฐโโโโ
help: Consider removing this declaration.
โ eslint(no-unused-vars): Variable 'serverSettings' is declared but never used. Unused variables should start with a '_'.
โญโ[apps/server/src/orchestration-v2/ProviderTurnStartService.ts:125:11]
124 โ const serverConfig = yield* ServerConfig.ServerConfig;
125 โ const serverSettings = yield* ServerSettings.ServerSettingsService;
ยท โโโโโโโโฌโโโโโโ
ยท โฐโโ 'serverSettings' is declared here
126 โ const gitWorkflow = yield* GitWorkflowService.GitWorkflowService;
โฐโโโโ
help: Consider removing this declaration.
โ t3code(no-inline-schema-compile): Hoist Schema.is(...) to module scope: the compiled function is rebuilt on every call. Move it to a module-level const.
โญโ[packages/effect-acp/src/schema.test.ts:18:12]
17 โ const command = { name: "plan", description: "Make a plan", input: { hint: "Task" } };
18 โ expect(Schema.is(V1.AvailableCommand)(command)).toBe(true);
ยท โโโโโโโโโ
19 โ expect(
โฐโโโโ
โ t3code(no-inline-schema-compile): Hoist Schema.is(...) to module scope: the compiled function is rebuilt on every call. Move it to a module-level const.
โญโ[packages/effect-acp/src/schema.test.ts:20:7]
19 โ expect(
20 โ Schema.is(V2.AvailableCommand)({ ...command, input: { type: "text", hint: "Task" } }),
ยท โโโโโโโโโ
21 โ ).toBe(true);
โฐโโโโ
โ react(purity): Cannot call impure function during render
โญโ[apps/web/src/components/sidebar/SidebarThreadRow.tsx:372:47]
371 โ const { open, onOpenChange, onSnooze, timestampFormat } = props;
372 โ const presets = open ? resolveSnoozePresets(new Date(), timestampFormat) : [];
ยท โโโโโโฌโโโโ
ยท โฐโโ Cannot call impure function
373 โ return (
โฐโโโโ
help: `Date` is an impure function. Calling an impure function can produce unstable results that update unpredictably when the component re-renders
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/purity
โ react(purity): Cannot call impure function during render
โญโ[apps/web/src/components/sidebar/SidebarThreadRow.tsx:853:39]
852 โ if (snoozeGateClock.thread !== thread) {
853 โ setSnoozeGateClock({ thread, now: new Date().toISOString() });
ยท โโโโโโฌโโโโ
ยท โฐโโ Cannot call impure function
854 โ }
โฐโโโโ
help: `Date` is an impure function. Calling an impure function can produce unstable results that update unpredictably when the component re-renders
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/purity
โ react(exhaustive-effect-dependencies): Found extra effect dependencies
โญโ[apps/mobile/src/state/use-thread-outbox-drain.ts:1315:5]
1314 โ queuedMessagesByThreadKey,
1315 โ retryTick,
ยท โโโโโฌโโโโ
ยท โฐโโ Unnecessary dependency `retryTick`
1316 โ restoreQueuedMessage,
โฐโโโโ
help: Extra dependencies can cause an effect to fire more often than it should, resulting in performance problems such as excessive renders and side effects
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/exhaustive-deps
โ eslint(no-unused-vars): Function 'layerClaudeAgentSdkReplayQueryRunner' is declared but never used.
โญโ[apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.testkit.ts:960:10]
959 โ
960 โ function layerClaudeAgentSdkReplayQueryRunner(
ยท โโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโ
ยท โฐโโ 'layerClaudeAgentSdkReplayQueryRunner' is declared here
961 โ transcript: ClaudeAgentSdkReplayTranscript,
โฐโโโโ
help: Consider removing this declaration.
โ t3code(no-inline-schema-compile): Hoist Schema.decodeUnknownEffect(...) to module scope: both the inline schema literal and the compiled function are rebuilt on every call. Move the compiled function to a module-level const.
โญโ[packages/effect-acp/src/errors.test.ts:129:28]
128 โ const secret = "acp-summary-secret";
129 โ const cause = yield* Schema.decodeUnknownEffect(
ยท โโโโโโโโโโโโโโโโโโโโโโโโโโ
130 โ Schema.Struct({
โฐโโโโ
โ eslint(no-unused-vars): Variable 'layerCodexAppServerClientFactoryCommand' is declared but never used. Unused variables should start with a '_'.
โญโ[apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts:1444:7]
1443 โ
1444 โ const layerCodexAppServerClientFactoryCommand = (
ยท โโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโ
ยท โฐโโ 'layerCodexAppServerClientFactoryCommand' is declared here
1445 โ options: CodexClient.CodexAppServerClientOptions & {
โฐโโโโ
help: Consider removing this declaration.
โ eslint(no-unused-vars): Variable 'layer' is declared but never used. Unused variables should start with a '_'.
โญโ[apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts:1680:7]
1679 โ
1680 โ const layer: Layer.Layer<
ยท โโโฌโโ
ยท โฐโโ 'layer' is declared here
1681 โ ProviderAdapter.ProviderAdapterV2,
โฐโโโโ
help: Consider removing this declaration.
โ react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders
โญโ[apps/mobile/src/state/use-vcs-action-state.ts:86:5]
83 โ const [nowMs, setNowMs] = useState(() => Date.now());
84 โ useEffect(() => {
ยท โโโโโฌโโโโ
ยท โฐโโ This is the containing effect
85 โ if (!actionState.isRunning) return;
86 โ setNowMs(Date.now());
ยท โโโโโฌโโโ
ยท โฐโโ Avoid calling setState() directly within an effect
87 โ const interval = setInterval(() => setNowMs(Date.now()), 1000);
โฐโโโโ
help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system.
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect
โ t3code(no-inline-schema-compile): Hoist Schema.decodeUnknownEffect(...) to module scope: the compiled function is rebuilt on every call. Move it to a module-level const.
โญโ[packages/effect-acp/src/client.ts:1269:11]
1268 โ extNotificationHandlers.set(CLIENT_METHODS.mcp_message, (params) =>
1269 โ Schema.decodeUnknownEffect(AcpSchemaV2.MessageMcpNotification)(params).pipe(
ยท โโโโโโโโโโโโโโโโโโโโโโโโโโ
1270 โ Effect.mapError(() => AcpError.AcpRequestError.invalidParams()),
โฐโโโโ
โ eslint(no-unused-vars): Variable 'legacyCredentials' is declared but never used. Unused variables should start with a '_'.
โญโ[packages/provider-cursor/src/server/credentialStore.test.ts:15:7]
14 โ
15 โ const legacyCredentials = {
ยท โโโโโโโโโฌโโโโโโโโ
ยท โฐโโ 'legacyCredentials' is declared here
16 โ version: 1 as const,
โฐโโโโ
help: Consider removing this declaration.
โ eslint(no-unused-vars): Parameter 'stopSessions' is declared but never used. Unused parameters should start with a '_'.
โญโ[packages/provider-cursor/src/server/auth.ts:249:20]
248 โ },
249 โ (effect, flow, stopSessions) =>
ยท โโโโโโโฌโโโโโ
ยท โฐโโ 'stopSessions' is declared here
250 โ effect.pipe(
โฐโโโโ
help: Consider removing this parameter.
โ t3code(no-polling-loop-in-tests): Polling loop in a test. Spinning on `yieldNow`/`sleep` is scheduler- and load-dependent. Await the `Deferred`, `Queue.take`, `Stream` element, `drain()`, or `expect.poll` that marks the milestone.
โญโ[apps/server/src/usage/UsageService.test.ts:2383:7]
2382 โ let orphanedAt: number | undefined;
2383 โ โญโโถ for (let interruptAt = 1; interruptAt <= 31; interruptAt += 1) {
2384 โ โ const tasks: Array<() => void> = [];
2385 โ โ const dispatcher: Scheduler.SchedulerDispatcher = {
2386 โ โ scheduleTask: (task) => tasks.push(task),
2387 โ โ flush: () => {
2388 โ โ let task: (() => void) | undefined;
2389 โ โ while ((task = tasks.shift()) !== undefined) task();
2390 โ โ },
2391 โ โ };
2392 โ โ
2393 โ โ let requestFiber: Fiber.Fiber<unknown, unknown> | undefined;
2394 โ โ let requestChecks = 0;
2395 โ โ const scheduler: Scheduler.Scheduler = {
2396 โ โ executionMode: "async",
2397 โ โ makeDispatcher: () => dispatcher,
2398 โ โ shouldYield: (fiber) => {
2399 โ โ if (fiber !== requestFiber) return false;
2400 โ โ requestChecks += 1;
2401 โ โ if (requestChecks !== interruptAt) return false;
2402 โ โ fiber.interruptUnsafe();
2403 โ โ return true;
2404 โ โ },
2405 โ โ };
2406 โ โ
2407 โ โ const input: UsageSummaryInput = {
2408 โ โ ...WINDOW,
2409 โ โ sinceDay: UsageDay.make("2026-09-01"),
2410 โ โ untilDay: UsageDay.make(`2026-08-${String(interruptAt).padStart(2, "0")}`),
2411 โ โ };
2412 โ โ const first = yield* service
2413 โ โ .readSummary(input)
2414 โ โ .pipe(
2415 โ โ Effect.exit,
2416 โ โ Effect.provideService(Scheduler.Scheduler, scheduler),
2417 โ โ Effect.forkChild,
2418 โ โ );
2419 โ โ requestFiber = first;
2420 โ โ yield* Effect.yieldNow;
2421 โ โ dispatcher.flush();
2422 โ โ
2423 โ โ const second = yield* service.readSummary(input).pipe(
2424 โ โ Effect.match({
2425 โ โ onFailure: (error) => error.reason,
2426 โ โ onSuccess: () => "success" as const,
2427 โ โ }),
2428 โ โ Effect.provideService(Scheduler.Scheduler, scheduler),
2429 โ โ Effect.forkChild,
2430 โ โ );
2431 โ โ yield* Effect.yieldNow;
2432 โ โ dispatcher.flush();
2433 โ โ const secondExit = second.pollUnsafe();
2434 โ โ if (secondExit === undefined) {
2435 โ โ second.interruptUnsafe();
2436 โ โ orphanedAt = interruptAt;
2437 โ โ break;
2438 โ โ }
2439 โ โ if (Exit.isFailure(secondExit)) {
2440 โ โ assert.fail("the matching request fiber was interrupted");
2441 โ โ }
2442 โ โ assert.strictEqual(secondExit.value, "invalidWindow");
2443 โ โฐโโถ }
2444 โ
โฐโโโโ
โ unicorn(prefer-array-find): Prefer `find` over filtering and accessing the first result.
โญโ[apps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.ts:1998:15]
1997 โ assert.equal(
1998 โ items.filter((item) => item.type === "assistant_message").at(-1)?.text,
ยท โโโโโโ
1999 โ "authoritative answer",
โฐโโโโ
help: Use `find(predicate)` instead of `filter(predicate)[0]` or similar patterns.
โ t3code(no-polling-loop-in-tests): Polling loop in a test. Spinning on `yieldNow`/`sleep` is scheduler- and load-dependent. Await the `Deferred`, `Queue.take`, `Stream` element, `drain()`, or `expect.poll` that marks the milestone.
โญโ[apps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.ts:3951:7]
3950 โ const closeFiber = yield* Scope.close(sessionScope, Exit.void).pipe(Effect.forkScoped);
3951 โ โญโโถ while (!responseLifecycle.includes("failed")) {
3952 โ โ yield* Effect.yieldNow;
3953 โ โฐโโถ }
3954 โ const responseExit = yield* Fiber.join(responseFiber);
โฐโโโโ
โ t3code(no-polling-loop-in-tests): Polling loop in a test. Spinning on `yieldNow`/`sleep` is scheduler- and load-dependent. Await the `Deferred`, `Queue.take`, `Stream` element, `drain()`, or `expect.poll` that marks the milestone.
โญโ[apps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.ts:6062:9]
6061 โ .pipe(Effect.forkScoped);
6062 โ โญโโถ while (promptGates.length < 1) {
6063 โ โ yield* Effect.yieldNow;
6064 โ โฐโโถ }
6065 โ assert.isDefined(sessionUpdateHandler, "session update handler must be wired");
โฐโโโโ
โ t3code(no-polling-loop-in-tests): Polling loop in a test. Spinning on `yieldNow`/`sleep` is scheduler- and load-dependent. Await the `Deferred`, `Queue.take`, `Stream` element, `drain()`, or `expect.poll` that marks the milestone.
โญโ[apps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.ts:6197:9]
6196 โ .pipe(Effect.forkScoped);
6197 โ โญโโถ while (promptGates.length < 2) {
6198 โ โ yield* Effect.yieldNow;
6199 โ โฐโโถ }
6200 โ if (sessionUpdateHandler === undefined || capturedMutation.current === null) {
โฐโโโโ
โ eslint(no-unused-vars): Variable 'layerTest' is declared but never used. Unused variables should start with a '_'.
โญโ[apps/server/src/usage/UsageService.ts:169:7]
168 โ
169 โ const layerTest = Layer.succeed(
ยท โโโโโฌโโโโ
ยท โฐโโ 'layerTest' is declared here
170 โ UsageService,
โฐโโโโ
help: Consider removing this declaration.
โ eslint(no-unused-vars): Variable 'layer' is declared but never used. Unused variables should start with a '_'.
โญโ[apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts:10578:7]
10577 โ
10578 โ const layer: Layer.Layer<
ยท โโโฌโโ
ยท โฐโโ 'layer' is declared here
10579 โ ProviderAdapter.ProviderAdapterV2,
โฐโโโโ
help: Consider removing this declaration.
โ react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders
โญโ[apps/mobile/src/features/terminal/terminalLaunchContext.ts:117:5]
112 โ const [entry, setEntry] = useState(() => ({ key: input.targetKey, location: candidate }));
113 โ useEffect(() => {
ยท โโโโโฌโโโโ
ยท โฐโโ This is the containing effect
114 โ if (entry.key === input.targetKey && (entry.location !== null || candidate === null)) {
115 โ return;
116 โ }
117 โ setEntry({ key: input.targetKey, location: candidate });
ยท โโโโโฌโโโ
ยท โฐโโ Avoid calling setState() directly within an effect
118 โ }, [candidate, entry.key, entry.location, input.targetKey]);
โฐโโโโ
help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system.
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect
โ react(immutability): This value cannot be modified
โญโ[apps/mobile/src/features/layout/workspace-inspector-pane.tsx:42:5]
35 โ
36 โ const inspectorProgress = useSharedValue(inspectorVisible ? 1 : 0);
ยท โโโโโโโโโฌโโโโโโโโ
ยท โฐโโ `inspectorProgress` originates here
37 โ const { renderedInspectorWidth } = props;
38 โ const renderedContentWidth = useSharedValue(inspectorWidth ?? 0);
39 โ
40 โ const onClosed = props.onClosed;
41 โ useEffect(() => {
42 โ inspectorProgress.value = withTiming(
ยท โโโโโโโโโฌโโโโโโโโ
ยท โฐโโ `inspectorProgress` cannot be modified
43 โ inspectorVisible ? 1 : 0,
โฐโโโโ
help: Modifying a value returned from a hook is not allowed. Consider moving the modification into the hook where the value is constructed
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/immutability
โ react(immutability): This value cannot be modified
โญโ[apps/mobile/src/features/layout/workspace-inspector-pane.tsx:67:7]
37 โ const { renderedInspectorWidth } = props;
38 โ const renderedContentWidth = useSharedValue(inspectorWidth ?? 0);
ยท โโโโโโโโโโโฌโโโโโโโโโ
ยท โฐโโ `renderedContentWidth` originates here
39 โ
40 โ const onClosed = props.onClosed;
41 โ useEffect(() => {
42 โ inspectorProgress.value = withTiming(
43 โ inspectorVisible ? 1 : 0,
44 โ WORKSPACE_PANE_TIMING,
45 โ (finished) => {
46 โ if (finished === true && !inspectorVisible && onClosed !== undefined) {
47 โ runOnJS(onClosed)();
48 โ }
49 โ },
50 โ );
51 โ const targetWidth = inspectorVisible ? (inspectorWidth ?? 0) : 0;
52 โ renderedInspectorWidth.set(
53 โ resizing ? targetWidth : withTiming(targetWidth, WORKSPACE_PANE_TIMING),
54 โ );
55 โ }, [
56 โ inspectorProgress,
57 โ inspectorVisible,
58 โ inspectorWidth,
59 โ onClosed,
60 โ renderedInspectorWidth,
61 โ resizing,
62 โ ]);
63 โ
64 โ useEffect(() => {
65 โ const targetWidth = inspectorWidth ?? 0;
66 โ if (!inspectorVisible || resizing) {
67 โ renderedContentWidth.value = targetWidth;
ยท โโโโโโโโโโโฌโโโโโโโโโ
ยท โฐโโ `renderedContentWidth` cannot be modified
68 โ return;
โฐโโโโ
help: Modifying a value returned from a hook is not allowed. Consider moving the modification into the hook where the value is constructed
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/immutability
โ react(exhaustive-effect-dependencies): Found extra effect dependencies
โญโ[apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx:215:7]
214 โ }
215 โ }, [wrappedRender]);
ยท โโโโโโโฌโโโโโโ
ยท โฐโโ Unnecessary dependency `wrappedRender`
216 โ
โฐโโโโ
help: Extra dependencies can cause an effect to fire more often than it should, resulting in performance problems such as excessive renders and side effects
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/exhaustive-deps
โ react(jsx-no-constructed-context-values): The Context `value` prop should not be constructed.
โญโ[apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx:817:35]
816 โ >
817 โ <AdaptiveWorkspaceContext value={contextValue}>
ยท โโโโโโโโโโโโโโโโโโโโ
818 โ <NativeWorkspaceInspectorContext
โฐโโโโ
help: Wrap the `value` prop in useMemo() or useCallback(), or use a constant value to prevent unnecessary re-renders.
Alternatively, move the value outside the render function if it doesn't depend on props or state.
โ react(jsx-no-constructed-context-values): The Context `value` prop should not be constructed.
โญโ[apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx:832:42]
831 โ >
832 โ <AdaptiveWorkspaceContext.Provider value={contextValue}>
ยท โโโโโโโโโโโโโโโโโโโโ
833 โ <WindowHingeContext value={windowHinge}>
โฐโโโโ
help: Wrap the `value` prop in useMemo() or useCallback(), or use a constant value to prevent unnecessary re-renders.
Alternatively, move the value outside the render function if it doesn't depend on props or state.
โ react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders
โญโ[apps/mobile/src/features/terminal/ThreadTerminalRouteScreen.tsx:643:5]
638 โ
639 โ useEffect(() => {
ยท โโโโโฌโโโโ
ยท โฐโโ This is the containing effect
640 โ if (pendingLaunchEntry.key === launchTargetKey) {
641 โ return;
642 โ }
643 โ setPendingLaunchEntry({
ยท โโโโโโโโโโโฌโโโโโโโโโโ
ยท โฐโโ Avoid calling setState() directly within an effect
644 โ key: launchTargetKey,
โฐโโโโ
help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system.
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect
โ react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders
โญโ[apps/mobile/src/features/terminal/ThreadTerminalRouteScreen.tsx:653:5]
648 โ
649 โ useEffect(() => {
ยท โโโโโฌโโโโ
ยท โฐโโ This is the containing effect
650 โ if (initialAttachGridEntry.key === launchTargetKey) {
651 โ return;
652 โ }
653 โ setInitialAttachGridEntry({
ยท โโโโโโโโโโโโโฌโโโโโโโโโโโโ
ยท โฐโโ Avoid calling setState() directly within an effect
654 โ key: launchTargetKey,
โฐโโโโ
help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system.
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect
โ react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders
โญโ[apps/mobile/src/features/terminal/ThreadTerminalRouteScreen.tsx:746:7]
743 โ
744 โ useEffect(() => {
ยท โโโโโฌโโโโ
ยท โฐโโ This is the containing effect
745 โ if (!routeEnvironmentId || !routeThreadId) {
746 โ setLastGridSize({
ยท โโโโโโโโฌโโโโโโโ
ยท โฐโโ Avoid calling setState() directly within an effect
747 โ cols: DEFAULT_TERMINAL_COLS,
โฐโโโโ
help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system.
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect
โ react(exhaustive-effect-dependencies): Found extra effect dependencies
โญโ[apps/mobile/src/features/terminal/ThreadTerminalRouteScreen.tsx:538:24]
537 โ });
538 โ }, [terminal.buffer, terminal.buffer.length, terminalKey]);
ยท โโโโโโโโโโโโฌโโโโโโโโโโ
ยท โฐโโ Overly precise dependency `terminal.buffer.length`, use `terminal.buffer` instead
539 โ const cwd = terminal.summary?.cwd ?? selectedThreadProject?.workspaceRoot ?? null;
โฐโโโโ
help: Extra dependencies can cause an effect to fire more often than it should, resulting in performance problems such as excessive renders and side effects
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/exhaustive-deps
โ react(exhaustive-effect-dependencies): Found extra effect dependencies
โญโ[apps/mobile/src/features/terminal/ThreadTerminalRouteScreen.tsx:709:7]
708 โ sentInitialInputKeyRef.current = null;
709 โ }, [terminalKey]);
ยท โโโโโโฌโโโโโ
ยท โฐโโ Unnecessary dependency `terminalKey`
710 โ
โฐโโโโ
help: Extra dependencies can cause an effect to fire more often than it should, resulting in performance problems such as excessive renders and side effects
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/exhaustive-deps
โ react(exhaustive-effect-dependencies): Found extra effect dependencies
โญโ[apps/mobile/src/features/terminal/ThreadTerminalRouteScreen.tsx:800:52]
799 โ };
800 โ }, [canOperateTerminal, isRunning, pasteSession, terminal.lifecycleVersion, terminalKey]);
ยท โโโโโโโโโโโโโฌโโโโโโโโโโโโ โโโโโโฌโโโโโ
ยท โ โฐโโ Unnecessary dependency `terminalKey`
ยท โฐโโ Unnecessary dependency `terminal.lifecycleVersion`
801 โ
โฐโโโโ
help: Extra dependencies can cause an effect to fire more often than it should, resulting in performance problems such as excessive renders and side effects
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/exhaustive-deps
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/features/terminal/ThreadTerminalRouteScreen.tsx:793:24]
792 โ }
793 โ const pasteSession = pasteSessionRef.current;
ยท โโโโโโโโโโโโฌโโโโโโโโโโโ
ยท โฐโโ Cannot access ref value during render
794 โ
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ t3code(no-inline-schema-compile): Hoist Schema.decodeEffect(...) to module scope: the compiled function is rebuilt on every call. Move it to a module-level const.
โญโ[apps/server/src/vcs/GitVcsDriverCore.test.ts:1786:34]
1785 โ const stat = branch.files!.find((file) => file.path === path)!;
1786 โ const request = yield* Schema.decodeEffect(ReviewDiffPreviewInput)({
ยท โโโโโโโโโโโโโโโโโโโ
1787 โ cwd,
โฐโโโโ
โ unicorn(prefer-string-starts-ends-with): Prefer String#startsWith over a regex with a caret.
โญโ[apps/server/src/vcs/GitVcsDriverCore.ts:509:11]
508 โ GIT_DIAGNOSTIC_LINE_PATTERN.test(line) ||
509 โ (!/^remote:/.test(line) && SSH_TRANSPORT_REFUSAL_PATTERN.test(line)),
ยท โโโโโโโโโโโโโโโ
510 โ )
โฐโโโโ
help: Replace `/^remote:/.test(line)` with `line.startsWith('remote:')`.
โ eslint(no-unused-vars): Identifier 'HookForwarder' is imported but never used.
โญโ[infra/relay/src/http/Api.ts:69:13]
68 โ import * as EnvironmentLinks from "../environments/EnvironmentLinks.ts";
69 โ import * as HookForwarder from "../hooks/HookForwarder.ts";
ยท โโโโโโโฌโโโโโโ
ยท โฐโโ 'HookForwarder' is imported here
70 โ import * as HeldHooks from "../hooks/HeldHooks.ts";
โฐโโโโ
help: Consider removing this import.
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/features/voice-input/useVoiceInputController.ts:27:14]
26 โ const latestInput = useRef(input);
27 โ latestInput.current = input;
ยท โโโโโโฌโโโโโโโโโโฌโโโ
ยท โ โฐโโ Cannot update ref value during render
ยท โฐโโ This value is a ref
28 โ const mounted = useRef(true);
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/features/diffs/nativeReviewDiffSurface.ts:277:39]
276 โ
277 โ โญโโถ return createElement(RawNativeView, {
278 โ โ ...nativeProps,
279 โ โ refreshEnabled: props.onPullToRefresh !== undefined,
280 โ โ ref: nativeRef,
281 โ โโโถ });
ยท โฐโโโโ Passing a ref to a function may read its value during render
282 โ }
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ react(immutability): This value cannot be modified
โญโ[apps/mobile/src/features/voice-input/GlobalVoiceInputControl.tsx:68:5]
65 โ const [expanded, setExpanded] = useState(false);
66 โ const progress = useSharedValue(0);
ยท โโโโโฌโโโ
ยท โฐโโ `progress` originates here
67 โ useEffect(() => {
68 โ progress.value = withTiming(expanded ? 1 : 0, MORPH_TIMING);
ยท โโโโโฌโโโ
ยท โฐโโ `progress` cannot be modified
69 โ }, [expanded, progress]);
โฐโโโโ
help: Modifying a value returned from a hook is not allowed. Consider moving the modification into the hook where the value is constructed
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/immutability
โ react(immutability): This value cannot be modified
โญโ[apps/mobile/src/features/voice-input/ComposerDictationControl.tsx:93:5]
90 โ }) {
91 โ const rotation = useSharedValue(props.hidden ? 1 : 0);
ยท โโโโโฌโโโ
ยท โฐโโ `rotation` originates here
92 โ useLayoutEffect(() => {
93 โ rotation.value = withTiming(props.hidden ? 1 : 0, TOOLBAR_FLIP_TIMING);
ยท โโโโโฌโโโ
ยท โฐโโ `rotation` cannot be modified
94 โ }, [props.hidden, rotation]);
โฐโโโโ
help: Modifying a value returned from a hook is not allowed. Consider moving the modification into the hook where the value is constructed
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/immutability
โ react(immutability): This value cannot be modified
โญโ[apps/mobile/src/features/voice-input/ComposerDictationControl.tsx:269:5]
266 โ const variant = props.variant ?? "plain";
267 โ const loadingVisibility = useSharedValue(props.loading ? 1 : 0);
ยท โโโโโโโโโฌโโโโโโโโ
ยท โฐโโ `loadingVisibility` originates here
268 โ useLayoutEffect(() => {
269 โ loadingVisibility.value = withTiming(props.loading ? 1 : 0, DICTATION_TIMING);
ยท โโโโโโโโโฌโโโโโโโโ
ยท โฐโโ `loadingVisibility` cannot be modified
270 โ }, [loadingVisibility, props.loading]);
โฐโโโโ
help: Modifying a value returned from a hook is not allowed. Consider moving the modification into the hook where the value is constructed
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/immutability
โ react(immutability): This value cannot be modified
โญโ[apps/mobile/src/features/voice-input/ComposerDictationControl.tsx:328:5]
325 โ }) {
326 โ const recordingVisibility = useSharedValue(props.phase === "recording" ? 1 : 0);
ยท โโโโโโโโโโฌโโโโโโโโโ
ยท โฐโโ `recordingVisibility` originates here
327 โ useLayoutEffect(() => {
328 โ recordingVisibility.value = withTiming(props.phase === "recording" ? 1 : 0, DICTATION_TIMING);
ยท โโโโโโโโโโฌโโโโโโโโโ
ยท โฐโโ `recordingVisibility` cannot be modified
329 โ }, [props.phase, recordingVisibility]);
โฐโโโโ
help: Modifying a value returned from a hook is not allowed. Consider moving the modification into the hook where the value is constructed
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/immutability
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/features/voice-input/VoiceInputProvider.tsx:122:38]
121 โ const audioLevelsRef = useRef(Array<number>(VOICE_WAVEFORM_SAMPLE_COUNT).fill(0));
122 โ const audioLevels = useSharedValue(audioLevelsRef.current);
ยท โโโโโโโโโโโโฌโโโโโโโโโโ
ยท โฐโโ Cannot access ref value during render
123 โ const sessionRef = useRef<VoiceInputSession | null>(null);
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/features/voice-input/VoiceInputProvider.tsx:126:8]
125 โ
126 โ if (!sessionRef.current || !recorderRef.current) {
ยท โโโโโโโโโโฌโโโโโโโโ
ยท โฐโโ Cannot access ref value during render
127 โ const recorder = createLazyVoiceRecorder({
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/features/voice-input/VoiceInputProvider.tsx:126:7]
125 โ
126 โ if (!sessionRef.current || !recorderRef.current) {
ยท โโโโโโโโโโฌโโโโโโโโโ
ยท โฐโโ Cannot access ref value during render
127 โ const recorder = createLazyVoiceRecorder({
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/features/voice-input/VoiceInputProvider.tsx:126:31]
125 โ
126 โ if (!sessionRef.current || !recorderRef.current) {
ยท โโโโโโโโโโฌโโโโโโโโโ
ยท โฐโโ Cannot access ref value during render
127 โ const recorder = createLazyVoiceRecorder({
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/features/voice-input/VoiceInputProvider.tsx:126:30]
125 โ
126 โ if (!sessionRef.current || !recorderRef.current) {
ยท โโโโโโโโโโโฌโโโโโโโโโ
ยท โฐโโ Cannot access ref value during render
127 โ const recorder = createLazyVoiceRecorder({
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/features/voice-input/VoiceInputProvider.tsx:127:46]
126 โ if (!sessionRef.current || !recorderRef.current) {
127 โ โญโโถ const recorder = createLazyVoiceRecorder({
128 โ โ create: () => new AudioModule.AudioRecorder(VOICE_RECORDING_OPTIONS),
129 โ โ onStatus: (status: RecordingStatus) => {
130 โ โ sessionRef.current?.controller.handleRecorderStatus({
131 โ โ isFinished: status.isFinished,
132 โ โ hasError: status.hasError || status.mediaServicesDidReset === true,
133 โ โ error: status.error,
134 โ โ url: status.url,
135 โ โ });
136 โ โ },
137 โ โ // Read when recording starts so preference changes do not re-render every composer.
138 โ โ selectInput: (inputs) => {
139 โ โ const preferences = registry.get(mobilePreferencesAtom);
140 โ โ if (!AsyncResult.isSuccess(preferences)) return null;
141 โ โ const known = microphoneOrder(preferences.value.microphones);
142 โ โ const order = rememberMicrophones(known, inputs);
143 โ โ if (order !== known) {
144 โ โ registry.set(updateMobilePreferencesAtom, {
145 โ โ transform: (current) => ({
146 โ โ microphones: rememberMicrophones(microphoneOrder(current.microphones), inputs),
147 โ โ }),
148 โ โ });
149 โ โ }
150 โ โ return preferredMicrophoneInput(inputs, order);
151 โ โ },
152 โ โโโถ });
ยท โฐโโโโ Passing a ref to a function may read its value during render
153 โ recorderRef.current = recorder;
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/features/voice-input/VoiceInputProvider.tsx:153:16]
152 โ });
153 โ recorderRef.current = recorder;
ยท โโโโโโฌโโโโโโโโโโฌโโโ
ยท โ โฐโโ Cannot update ref value during render
ยท โฐโโ This value is a ref
154 โ sessionRef.current = new VoiceInputSession({
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/features/voice-input/VoiceInputProvider.tsx:154:48]
153 โ recorderRef.current = recorder;
154 โ โญโโถ sessionRef.current = new VoiceInputSession({
155 โ โ recorder,
156 โ โ getTranscriber: getLocalVoiceTranscriber,
157 โ โ requestPermission: async () => {
158 โ โ const permission = await requestRecordingPermissionsAsync();
159 โ โ return { granted: permission.granted, canAskAgain: permission.canAskAgain };
160 โ โ },
161 โ โ configureRecording: configureVoiceRecordingAudio,
162 โ โ releaseRecording: releaseVoiceRecordingAudio,
163 โ โ deleteRecording: (uri) => new File(uri).delete(),
164 โ โ onStateChange: (nextState) =>
165 โ โ setState({
166 โ โ state: nextState,
167 โ โ ownerKey: sessionRef.current?.ownerKey ?? null,
168 โ โ label: sessionRef.current?.label ?? null,
169 โ โ }),
170 โ โโโถ });
ยท โฐโโโโ Cannot access ref value during render
171 โ }
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/features/voice-input/VoiceInputProvider.tsx:154:15]
153 โ recorderRef.current = recorder;
154 โ sessionRef.current = new VoiceInputSession({
ยท โโโโโโฌโโโโโโโโโฌโโโ
ยท โ โฐโโ Cannot update ref value during render
ยท โฐโโ This value is a ref
155 โ recorder,
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/features/voice-input/VoiceInputProvider.tsx:185:7]
184 โ return () => subscription.remove();
185 โ }, [controller]);
ยท โโโโโโฌโโโโ
ยท โฐโโ Cannot access ref value during render
186 โ
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/features/voice-input/VoiceInputProvider.tsx:185:6]
184 โ return () => subscription.remove();
185 โ }, [controller]);
ยท โโโโโโโฌโโโโโ
ยท โฐโโ Cannot access ref value during render
186 โ
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/features/voice-input/VoiceInputProvider.tsx:192:6]
191 โ },
192 โ [controller, recorder],
ยท โโโโโโฌโโโโ
ยท โฐโโ Cannot access ref value during render
193 โ );
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/features/voice-input/VoiceInputProvider.tsx:175:20]
174 โ const controller = session.controller;
175 โ const recorder = recorderRef.current;
ยท โโโโโโโโโโฌโโโโโโโโโ
ยท โฐโโ Cannot access ref value during render
176 โ
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/features/voice-input/VoiceInputProvider.tsx:192:5]
191 โ },
192 โ [controller, recorder],
ยท โโโโโโโโโโโโฌโโโโโโโโโโ
ยท โฐโโ Cannot access ref value during render
193 โ );
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/features/voice-input/VoiceInputProvider.tsx:246:20]
245 โ return () => clearInterval(intervalId);
246 โ }, [audioLevels, controller, recorder, state.phase]);
ยท โโโโโโฌโโโโ
ยท โฐโโ Cannot access ref value during render
247 โ
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/features/voice-input/VoiceInputProvider.tsx:246:6]
245 โ return () => clearInterval(intervalId);
246 โ }, [audioLevels, controller, recorder, state.phase]);
ยท โโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโ
ยท โฐโโ Cannot access ref value during render
247 โ
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/features/voice-input/VoiceInputProvider.tsx:261:5]
260 โ setOwnerFocused,
261 โ session,
ยท โโโโฌโโโ
ยท โฐโโ Cannot access ref value during render
262 โ stop,
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ react(refs): Cannot access refs during render
โญโ[apps/mobile/src/features/voice-input/VoiceInputProvider.tsx:251:10]
250 โ
251 โ โญโโถ return {
252 โ โ isAvailable: getLocalVoiceTranscriber() !== null || getNativeShowcaseScene() !== null,
253 โ โ state,
254 โ โ audioLevels,
255 โ โ elapsedSeconds,
256 โ โ isBusy: voiceInputBlocksSubmission(state),
257 โ โ ownerKey,
258 โ โ label,
259 โ โ focusedOwners,
260 โ โ setOwnerFocused,
261 โ โ session,
262 โ โ stop,
263 โ โ cancel,
264 โ โโโถ };
ยท โฐโโโโ Cannot access ref value during render
265 โ }
โฐโโโโ
help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
โ react(immutability): This value cannot be modified
โญโ[apps/mobile/src/features/voice-input/VoiceInputProvider.tsx:212:7]
121 โ const audioLevelsRef = useRef(Array<number>(VOICE_WAVEFORM_SAMPLE_COUNT).fill(0));
122 โ const audioLevels = useSharedValue(audioLevelsRef.current);
ยท โโโโโโฌโโโโโ
ยท โฐโโ `audioLevels` originates here
123 โ const sessionRef = useRef<VoiceInputSession | null>(null);
124 โ const recorderRef = useRef<LazyVoiceRecorder<RecorderState> | null>(null);
125 โ
126 โ if (!sessionRef.current || !recorderRef.current) {
127 โ const recorder = createLazyVoiceRecorder({
128 โ create: () => new AudioModule.AudioRecorder(VOICE_RECORDING_OPTIONS),
129 โ onStatus: (status: RecordingStatus) => {
130 โ sessionRef.current?.controller.handleRecorderStatus({
131 โ isFinished: status.isFinished,
132 โ hasError: status.hasError || status.mediaServicesDidReset === true,
133 โ error: status.error,
134 โ url: status.url,
135 โ });
136 โ },
137 โ // Read when recording starts so preference changes do not re-render every composer.
138 โ selectInput: (inputs) => {
139 โ const preferences = registry.get(mobilePreferencesAtom);
140 โ if (!AsyncResult.isSuccess(preferences)) return null;
141 โ const known = microphoneOrder(preferences.value.microphones);
142 โ const order = rememberMicrophones(known, inputs);
143 โ if (order !== known) {
144 โ registry.set(updateMobilePreferencesAtom, {
145 โ transform: (current) => ({
146 โ microphones: rememberMicrophones(microphoneOrder(current.microphones), inputs),
147 โ }),
148 โ });
149 โ }
150 โ return preferredMicrophoneInput(inputs, order);
151 โ },
152 โ });
153 โ recorderRef.current = recorder;
154 โ sessionRef.current = new VoiceInputSession({
155 โ recorder,
156 โ getTranscriber: getLocalVoiceTranscriber,
157 โ requestPermission: async () => {
158 โ const permission = await requestRecordingPermissionsAsync();
159 โ return { granted: permission.granted, canAskAgain: permission.canAskAgain };
160 โ },
161 โ configureRecording: configureVoiceRecordingAudio,
162 โ releaseRecording: releaseVoiceRecordingAudio,
163 โ deleteRecording: (uri) => new File(uri).delete(),
164 โ onStateChange: (nextState) =>
165 โ setState({
166 โ state: nextState,
167 โ ownerKey: sessionRef.current?.ownerKey ?? null,
168 โ label: sessionRef.current?.label ?? null,
169 โ }),
170 โ });
171 โ }
172 โ
173 โ const session = sessionRef.current;
174 โ const controller = session.controller;
175 โ const recorder = recorderRef.current;
176 โ
177 โ useEffect(() => {
178 โ const subscription = AppState.addEventListener("change", (nextState) => {
179 โ // iOS reports `inactive` while its permission dialog is open. Only the
180 โ // real background state cancels preparation; recorder status handles
181 โ // calls and route interruptions during capture.
182 โ if (nextState === "background") controller.appMovedToBackground();
183 โ });
184 โ return () => subscription.remove();
185 โ }, [controller]);
186 โ
187 โ useEffect(
188 โ () => () => {
189 โ controller.dispose();
190 โ recorder.release();
191 โ },
192 โ [controller, recorder],
193 โ );
194 โ
195 โ useEffect(() => {
196 โ if (state.phase !== "recording") return;
197 โ
198 โ const tag = `voice-input:${keepAwakeId}:${++keepAwakeSessionRef.current}`;
199 โ const activation = activateKeepAwakeAsync(tag);
200 โ void activation.catch(() => {});
201 โ return () => {
202 โ // Release after activation settles, even if the recording ends immediately.
203 โ void activation.then(() => deactivateKeepAwake(tag)).catch(() => {});
204 โ };
205 โ }, [keepAwakeId, state.phase]);
206 โ
207 โ useEffect(() => {
208 โ if (state.phase !== "preparing" && state.phase !== "recording") return;
209 โ
210 โ if (audioLevelsRef.current.some((level) => level !== 0)) {
211 โ audioLevelsRef.current = Array<number>(VOICE_WAVEFORM_SAMPLE_COUNT).fill(0);
212 โ audioLevels.value = audioLevelsRef.current;
ยท โโโโโโฌโโโโโ
ยท โฐโโ `audioLevels` cannot be modified
213 โ }
โฐโโโโ
help: Modifying a value returned from a hook is not allowed. Consider moving the modification into the hook where the value is constructed
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/immutability
โ react(immutability): Cannot modify local variables after render completes
โญโ[apps/mobile/src/features/voice-input/VoiceInputProvider.tsx:212:7]
206 โ
207 โ useEffect(() => {
ยท โโโโฌโโโ
ยท โฐโโ This function may (indirectly) reassign or modify `audioLevels` after render
208 โ if (state.phase !== "preparing" && state.phase !== "recording") return;
209 โ
210 โ if (audioLevelsRef.current.some((level) => level !== 0)) {
211 โ audioLevelsRef.current = Array<number>(VOICE_WAVEFORM_SAMPLE_COUNT).fill(0);
212 โ audioLevels.value = audioLevelsRef.current;
ยท โโโโโโฌโโโโโ
ยท โฐโโ This modifies `audioLevels`
213 โ }
โฐโโโโ
help: This argument is a function which may reassign or mutate `audioLevels` after render, which can cause inconsistent behavior on subsequent renders. Consider using state instead
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/immutability
โ react(static-components): Cannot create components during render
โญโ[apps/mobile/src/features/terminal/NativeTerminalSurface.tsx:234:10]
196 โ const { onInput, onResize } = props;
197 โ const NativeTerminalSurfaceView = resolveNativeTerminalSurfaceView();
ยท โโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโ
ยท โฐโโ The component is created during render here
198 โ const hasNativeSurface = Boolean(NativeTerminalSurfaceView);
199 โ
200 โ useEffect(() => {
201 โ terminalDebugLog("native:surface", {
202 โ terminalKey: props.terminalKey,
203 โ native: hasNativeSurface,
204 โ hardwareKeyRevision: getNativeTerminalHardwareKeyRevision(),
205 โ bufferLen: props.buffer.length,
206 โ isRunning: props.isRunning,
207 โ });
208 โ }, [hasNativeSurface, props.buffer.length, props.isRunning, props.terminalKey]);
209 โ const handleNativeInput = useCallback(
210 โ (event: NativeSyntheticEvent<TerminalInputEvent>) => {
211 โ if (!props.isRunning || props.readOnly) {
212 โ return;
213 โ }
214 โ terminalDebugLog("native:onInput", {
215 โ codes: Array.from(event.nativeEvent.data, (char) => char.codePointAt(0)),
216 โ });
217 โ onInput(event.nativeEvent.data);
218 โ },
219 โ [onInput, props.isRunning, props.readOnly],
220 โ );
221 โ const handleNativeResize = useCallback(
222 โ (event: NativeSyntheticEvent<TerminalResizeEvent>) => {
223 โ onResize({
224 โ cols: event.nativeEvent.cols,
225 โ rows: event.nativeEvent.rows,
226 โ });
227 โ },
228 โ [onResize],
229 โ );
230 โ
231 โ if (NativeTerminalSurfaceView) {
232 โ return (
233 โ <View style={props.style}>
234 โ <NativeTerminalSurfaceView
ยท โโโโโโโโโโโโโฌโโโโโโโโโโโโ
ยท โฐโโ This component is created during render
235 โ appearanceScheme={themeAppearance}
โฐโโโโ
help: Components created during render will reset their state each time they are created. Declare components outside of render
note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/static-components
โ react(no-array-index-key): Usage of Array index in keys is not allowed
โญโ[apps/mobile/src/features/terminal/TerminalContextSheet.tsx:72:15]
71 โ <Pressable
72 โ key={index}
ยท โโโโโโโโโโโ
73 โ accessibilityRole="button"
โฐโโโโ
help: Use a unique data-dependent key to avoid unnecessary rerenders
Found 0 errors and 360 warnings in 5408 files (5.7s, 8 threads)
Post job cleanup.
Cache hit occurred on the primary key electron-Linux-X64-854e11ddd491bd4f350eebb67a74265df119376a3984c8e153cfe5fc8ced6309, not saving cache.
Post job cleanup.
##[start-action display=Cache full pnpm store;id=__18a0be98-a7ce-49cd-a64d-b379b511558c.__actions_cache]
Post job cleanup.
[command]/usr/bin/tar --posix -cf cache.tzst --exclude cache.tzst -P -C /home/runner/_work/t3code/t3code --files-from manifest.txt --use-compress-program zstdmt
Failed to save: Unable to reserve cache with key pnpm-full-v1-Linux-X64-045caa51c4b226597018f0d0c699ccc3936ad58bb7e4b01dc2f26bb9d6fd8aef, another job may be creating this cache.
##[end-action id=__18a0be98-a7ce-49cd-a64d-b379b511558c.__actions_cache;outcome=success;conclusion=success;duration_ms=4199]
##[start-action display=Cache Vite+;id=__18a0be98-a7ce-49cd-a64d-b379b511558c.vp_cache]
Post job cleanup.
Cache hit occurred on the primary key vite-plus-home-v2-Linux-X64-1.3.0-node26.12.1-pnpm@12.14.0, not saving cache.
##[end-action id=__18a0be98-a7ce-49cd-a64d-b379b511558c.vp_cache;outcome=success;conclusion=success;duration_ms=72]
Post job cleanup.
[command]/usr/local/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/_work/_temp/d9e48ee8-d4cf-4932-95ed-b0d40d6da27d' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/local/bin/git config --global --add safe.directory /home/runner/_work/t3code/t3code
Removing SSH command configuration
[command]/usr/local/bin/git config --local --name-only --get-regexp core\.sshCommand
[command]/usr/local/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
fatal: No url found for submodule path '.repos/alchemy-effect/submodules/distilled' in .gitmodules
Warning: The process '/usr/local/bin/git' failed with exit code 128
A job completed hook has been configured by the self-hosted runner administrator
โธ Run '/job_completed.sh'
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
BLACKSMITH_RUNNER_MESSAGE_WAIT_MS: 153
BLACKSMITH_RUNNER_ACQUIRE_JOB_MS: 367
BLACKSMITH_CHECK_RUN_ID: 120759108944
BLACKSMITH_JOB_DISPLAY_NAME: Lint
GITHUB_ACTIONS_CACHE_MODE: write
Docker container cache not activated, skipping hash computation.
No active SSH sessions detected. Proceeding with shutdown immediately.
Cleaning up orphan processes