Commit Graph

2788 Commits

Author SHA1 Message Date
Mohamed Boudra
5b420dbfdb chore(lint): fix typecheck errors from hoisting refactors
- pair-scan: type BARCODE_SCANNER_SETTINGS as BarcodeSettings
- explorer-sidebar: add missing desktopSidebarStyle useMemo
- sidebar-workspace-list: coerce null dotColor to transparent
- menu-header, e2e.test: formatting
2026-04-24 02:17:56 +07:00
Mohamed Boudra
e730d13957 chore(lint): reduce relay test no-await-in-loop warnings
Refactor while-loops and for-retry loops in e2e.test.ts and
live-relay.e2e.test.ts into recursive poll/attempt helpers.
Remaining 8 warnings in encrypted-channel.ts concern the custom
Transport interface (on-handler slots, not DOM EventTarget) and a
sequential send loop; both reflect deliberate runtime contracts.
2026-04-24 02:14:01 +07:00
Mohamed Boudra
edd92acb3d chore(lint): memoize inline styles in agent-list 2026-04-24 02:13:09 +07:00
Mohamed Boudra
6f8f378732 chore(lint): memoize mobile sidebar styles in explorer-sidebar 2026-04-24 02:11:39 +07:00
Mohamed Boudra
18262a0899 chore(lint): memoize inline styles in explorer-sidebar 2026-04-24 02:10:50 +07:00
Mohamed Boudra
d78dff3572 chore(lint): reduce max-depth in opencode-agent foreground loop 2026-04-24 02:10:41 +07:00
Mohamed Boudra
5f6ebe2065 chore(lint): narrow explicit any in claude-agent/openai stt 2026-04-24 02:09:48 +07:00
Mohamed Boudra
4dfcc426b6 chore(lint): memoize inline styles in context-menu 2026-04-24 02:08:15 +07:00
Mohamed Boudra
f9a1ad21b5 chore(lint): clear cli warnings to zero
Refactor polling loops into recursive helpers to satisfy
no-await-in-loop, fix WebSocket named import, and correct
an absolute-path import in tests/tmp.
2026-04-24 02:08:08 +07:00
Mohamed Boudra
9865eb0a34 chore(lint): reduce max-depth in claude-agent query pump 2026-04-24 02:07:35 +07:00
Mohamed Boudra
d892ccb75d chore(lint): flatten nested conditions in pi-direct-agent history 2026-04-24 02:07:16 +07:00
Mohamed Boudra
18f9174bf6 chore(lint): extract helper to reduce max-depth in agent-response-loop 2026-04-24 02:06:42 +07:00
Mohamed Boudra
b0fdeea505 chore(lint): memoize inline styles in command-center 2026-04-24 02:06:30 +07:00
Mohamed Boudra
42516df3f1 chore(lint): reduce max-depth in claude-sdk-behavior test 2026-04-24 02:05:28 +07:00
Mohamed Boudra
2d19b47577 chore(lint): narrow explicit any in codex-app-server-agent thread items 2026-04-24 02:04:39 +07:00
Mohamed Boudra
1f4f0c020c chore(lint): hoist top-level inline arrays in diff-viewer 2026-04-24 02:04:01 +07:00
Mohamed Boudra
243c859709 chore(lint): hoist inline styles/objects in menu-header 2026-04-24 02:03:16 +07:00
Mohamed Boudra
1945c39a3b chore(lint): hoist inline styles in screen-header 2026-04-24 02:02:16 +07:00
Mohamed Boudra
6c13bd9ab3 chore(lint): hoist SheetBackground combined style 2026-04-24 02:01:18 +07:00
Mohamed Boudra
34258780ec chore(lint): narrow explicit any in server relay/loader/logger-likes 2026-04-24 01:59:24 +07:00
Mohamed Boudra
c8474385ff chore(lint): hoist/memoize inline styles in plan-card
Extracts markdown rule style arrays into dedicated MarkdownInlineText,
MarkdownListItemContent, and MarkdownParagraph subcomponents that
memoize their own style arrays. Memoizes PlanCard container/title/
description styles.
2026-04-24 01:57:23 +07:00
Mohamed Boudra
0e837fe4f3 chore(lint): hoist inline style arrays in question-form-card 2026-04-24 01:56:23 +07:00
Mohamed Boudra
eb444a2ade chore(lint): hoist pair-scan inline arrays and objects
Extracts corner style arrays and barcode scanner settings to module
scope, memoizes insets-dependent body/helper text styles.
2026-04-24 01:56:01 +07:00
Mohamed Boudra
afa8fc2709 chore(lint): remove useless constructors in server tests 2026-04-24 01:55:12 +07:00
Mohamed Boudra
935f286377 chore(lint): clear desktop warnings to zero
Convert polling loops to recursive helpers to avoid no-await-in-loop,
and switch the ws import to the named export so the WebSocket type is
referenced directly.
2026-04-24 01:53:32 +07:00
Mohamed Boudra
f9a6287423 chore(lint): flatten nested ternaries in host-runtime/host-page/providers 2026-04-24 01:52:34 +07:00
Mohamed Boudra
89eac88888 chore(lint): narrow explicit any in misc server files 2026-04-24 01:51:26 +07:00
Mohamed Boudra
6f6e1469c1 chore(lint): flatten nested ternaries in button/volume-meter/autocomplete 2026-04-24 01:50:04 +07:00
Mohamed Boudra
50faf34b9a fix(server): restore microtask ordering in session message dispatch
Converts per-group dispatchers to Promise<void> | undefined. The complexity
refactor broke two tests by inserting extra microtasks between each
dispatcher's await. The new pattern routes synchronously via a nullish-
coalescing chain and awaits only the matching dispatcher's promise.
2026-04-24 01:49:21 +07:00
Mohamed Boudra
405b964d41 chore(lint): hoist dictation-controls inline arrays 2026-04-24 01:47:15 +07:00
Mohamed Boudra
892b9d1ae9 chore(lint): allow css imports in import/no-unassigned-import, hoist host page styles 2026-04-24 01:45:20 +07:00
Mohamed Boudra
0302b5b32e chore(lint): parallelize more safe awaits in server (no-await-in-loop)
- Workspace reconciliation: archive missing workspaces and orphaned
  projects concurrently instead of sequentially.
- Directory suggestions: resolve child directory candidates in parallel
  before filtering.
2026-04-24 01:44:29 +07:00
Mohamed Boudra
1ffec56bbe chore(lint): clear website warnings to zero
Resolves all 61 oxlint warnings in packages/website/ by hoisting inline
callbacks/JSX, extracting sub-components to satisfy jsx-max-depth, using
stable data-derived keys, adding explicit button types, flattening nested
ternaries, and removing unused code.
2026-04-24 01:42:30 +07:00
Mohamed Boudra
7bef37f458 chore(lint): parallelize safe awaits in server (no-await-in-loop)
Converts three sequential `for ... await` loops to `Promise.all`:
- OpenCode: configure MCP servers in parallel
- Sherpa: download model files and ensure multiple models concurrently
- Speech runtime: check required model files across models in parallel
2026-04-24 01:41:59 +07:00
Mohamed Boudra
01338d2a55 chore(lint): hoist/memoize inline arrays and objects in app JSX 2026-04-24 01:41:00 +07:00
Mohamed Boudra
6465edc01f fix(server): restore microtask ordering in message dispatch and stream event handler
The complexity refactor added async dispatcher chains that inserted extra
microtasks before message handlers ran, and wrapped the stream event switch
in an await that fired between emitState and dispatchStream. Two tests
regressed on both counts. Route to the matching dispatcher synchronously
and skip the await when the stream handler has no async work.
2026-04-24 01:39:20 +07:00
Mohamed Boudra
94b6604d7a chore(lint): parallelize more safe await-in-loop in server 2026-04-24 01:36:39 +07:00
Mohamed Boudra
fe3a9bd833 chore(lint): hoist inline callbacks in app (jsx-no-new-function-as-prop)
Finish eliminating jsx-no-new-function-as-prop warnings in
agent-status-bar.tsx and complete refactor of git-diff-pane.tsx
by extracting per-item components and using stable useCallback
handlers.
2026-04-24 01:34:48 +07:00
Mohamed Boudra
cb6987b0a2 chore(lint): parallelize safe await-in-loop in server 2026-04-24 01:33:07 +07:00
Mohamed Boudra
16a48db75b chore(lint): hoist inline callbacks in app components (jsx-no-new-function-as-prop) 2026-04-24 01:28:12 +07:00
Mohamed Boudra
339fc6b316 chore(lint): reduce cyclomatic complexity in server 2026-04-24 01:24:58 +07:00
Mohamed Boudra
5f620a36d6 chore(lint): hoist inline callbacks in app (jsx-no-new-function-as-prop) 2026-04-24 00:25:02 +07:00
Mohamed Boudra
84571e5309 chore(lint): hoist inline callbacks in app (jsx-no-new-function-as-prop)
Work in progress: 30 of 369 warnings fixed across 23 files.
2026-04-24 00:10:24 +07:00
Mohamed Boudra
6f131ad551 chore(lint): extract nested callbacks in server (max-nested-callbacks) 2026-04-23 23:58:58 +07:00
Mohamed Boudra
55baa53e0b fix(types): add index signatures for Record assignability 2026-04-23 23:44:24 +07:00
Mohamed Boudra
154dcaa479 chore(lint): rename shadowed bindings in server (no-shadow)
Rename inner bindings that shadow outer imports or function params:
- Promise executor `resolve` -> `resolvePromise` (shadowed path `resolve`)
- Method params `options` -> `input`/`target`/`update`/`runOptions`/`opts`/`killOptions`
- Misc loop/destructure renames for `workspaceId`, `scriptNames`, `path`, `query`, `taskNotificationItem`

Mechanical change only; no behavior change.
2026-04-23 23:37:47 +07:00
Mohamed Boudra
2230a2a48e chore(lint): format keyboard-shortcuts-section 2026-04-23 23:36:34 +07:00
Mohamed Boudra
78f82b1e82 chore(lint): hoist inline arrays in app (jsx-no-new-array-as-prop) 2026-04-23 23:36:04 +07:00
Mohamed Boudra
d1932c9060 chore(lint): hoist inline arrays in app (jsx-no-new-array-as-prop) 2026-04-23 23:31:39 +07:00
Mohamed Boudra
de1a7ef74b chore(lint): clean up desktop and highlight packages 2026-04-23 23:27:15 +07:00