Repository navigation
oxc stack - #1
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughMigrates formatting/linting from Biome to Oxfmt/Oxlint, adds VSCode Oxc recommendations/settings, upgrades Bun and TypeScript targets to newer versions, introduces a new exported helper Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
Adopt the oxc stack by replacing repository linting/formatting with
|
71948e8 to
a6606e8
Compare
- BrowserPanel.tsx: orchestrator with isElectron detection - BrowserPanelShell.tsx: container UI (same pattern as DiffPanelShell) - BrowserNavBar.tsx: URL bar + back/forward/refresh/close - BrowserWebview.tsx: Electron <webview> with isolated partition - BrowserIframe.tsx: localhost-only iframe fallback for web mode - browserPanelStore.ts: Zustand store for URL/nav state - browserRouteSearch.ts: search params ?browser=1&browserUrl=xxx - Keybinding: browser.toggle (mod+b) - Toggle button: GlobeIcon in ChatHeader (after editor, before diff) - Layout: RightPanel sidebar after DiffPanel (desktop + mobile sheet) - Desktop main.ts: webviewTag: true in webPreferences - CSS: browser-loading keyframe animation - Tests: 20 passing (browserRouteSearch + browserPanelStore) - Zero conflict with PR pingdotgg#1: additions-only in shared files
Inspired by upstream t3code PRs: - pingdotgg/t3code#1 (resolveModelSlug-style normalization) - pingdotgg/t3code#2092 (code block copy for touch / position / clipboard fallback) - pingdotgg/t3code#2057 (completion chime when agent turn settles) - pingdotgg/t3code#2081 (surface ahead-of-base for clean pushed branches on mobile create PR) Adds resolveModelSlug with optional provider hint, chat code copy controls and non-secure clipboard fallback, optional Web Audio completion sound with settings, and commitsAheadOfBase on mobile PR create eligibility with iOS subtitle. Co-authored-by: Arul Sharma <arul28@users.noreply.github.com>
…gs (#163) * feat: port t3code UX — model slug, code copy, sounds, PR ahead hint Inspired by upstream t3code PRs: - pingdotgg/t3code#1 (resolveModelSlug-style normalization) - pingdotgg/t3code#2092 (code block copy for touch / position / clipboard fallback) - pingdotgg/t3code#2057 (completion chime when agent turn settles) - pingdotgg/t3code#2081 (surface ahead-of-base for clean pushed branches on mobile create PR) Adds resolveModelSlug with optional provider hint, chat code copy controls and non-secure clipboard fallback, optional Web Audio completion sound with settings, and commitsAheadOfBase on mobile PR create eligibility with iOS subtitle. Co-authored-by: Arul Sharma <arul28@users.noreply.github.com> * fix: banner dismiss controls, resilient completion sound, tests - Dismiss missing-AI and GitHub setup banners per session (inspired by pingdotgg/t3code#773) - Resume suspended AudioContext, defer AudioContext.close, use global setTimeout - Add vitest coverage for sound helper and banner dismiss; extend appStore prefs test Co-authored-by: Arul Sharma <arul28@users.noreply.github.com> * feat(settings): appearance tab with chat font preview (t3 #2174) - New Appearance settings: theme swatches, chat font size 12–24px with live ChatMarkdown preview, copy-button position + completion sound (moved from General) - chatFontSizePx in appStore; work chat scales via ChatSurfaceShell zoom - resolveModelSlug: exact getModelById before provider-hint lowercasing (review) - iOS Create PR lane subtitle when commitsAheadOfBase is 0 - A11y: label range input; fix preview sample template literal Co-authored-by: Arul Sharma <arul28@users.noreply.github.com> * fix: remove upstream PR link from UI; cross-browser chat scaling - Appearance: drop user-visible t3code/GitHub link; keep neutral copy - ChatSurfaceShell: scale header/body/footer via transform + inverse dimensions (Firefox-safe) instead of CSS zoom; contentScale prop - AgentChatPane: pass contentScale from chat font preference - agentTurnCompletionSound: module + function docstrings (CodeRabbit hint) - Add ChatSurfaceShell scale wrapper tests with cleanup between cases Co-authored-by: Arul Sharma <arul28@users.noreply.github.com> * fix: address CI failures and review feedback on PR branch Repair grepSearch JS-fallback tests by routing ripgrep exec through a test hook; relax TerminalView WebGL expectation for headless CI; play completion sound only on successful turns; preserve case-sensitive model refs with provider hints; improve Appearance preview layout, a11y, and clipboard cleanup; keep banner dismissals across project switches; make iOS commitsAheadOfBase backward compatible and show lane subtitles. Co-authored-by: Arul Sharma <arul28@users.noreply.github.com> * fix: safer repo-wide grep fallback, chat markdown code blocks, copy polish Skip hidden root-only dirs (e.g. .ade) in JS grep when searching the whole repo while still entering .github; add regression test. Route ChatMarkdown fenced blocks through HighlightedCode so copy placement applies in previews. Stub WebGL canvas in TerminalView tests instead of weakening assertions. Tighten Appearance section labels and helper copy to sentence case. Co-authored-by: Arul Sharma <arul28@users.noreply.github.com> * Normalize config paths, runpage & chat UI Normalize project config paths and improve run-page, chat UI, and related behavior. Summary of changes: - Project config: add path normalization helpers (normalizeConfigPath, projectRelativePath, normalizeProjectCwd/Command) and apply them when validating, saving, and returning snapshots so absolute project-root paths are converted to portable relative paths. Persist normalized shared/local in snapshots. - Tests: add unit test to verify project-root absolute paths are normalized and that saved ade.yaml contains portable paths. - RunPage refactor: introduce helpers to convert absolute paths to project-relative, build/update process config definitions, handle local vs shared placement (localOnly), and add upsert/remove helpers for processes and stack buttons. Adjust save logic and dependencies. - Grep search: surface descriptive "Invalid regex pattern" errors from JS fallback and improve glob handling to match bare filenames for patterns like **/*.ts; add tests for invalid regex and glob edge cases. - IPC: catch errors from resolveLaneOverlayContext during lane delete, log a warning, and continue. - App shell & store: move per-session banner-dismiss state into app store (avoid local-state leaks) and use store dismiss actions. - Chat & code UI: switch many inline styles to CSS variables, improve code copy button (auto/sticky mode), better diff coloring via styles, and style enhancements for code blocks, inline code, and tables. Wire code-copy position from store. - Agent sounds & settings: add volume and quiet-when-focused preferences, pass options to playAgentTurnCompletionSound, and update AppearanceSection UI (chat font-size swatches, sound controls, terminal options import). - Misc: make .ade/ade.yaml use project-relative script paths and update finalize.md to add a Mobile Parity agent checklist and instructions. Why: make config files portable across machines, provide clearer errors and more ergonomic UI/UX for chat/code blocks, and ensure consistent handling of local vs shared config changes when editing processes from the Run page. * Improve glob/path handling and small UI/accessibility fixes Enhance grep glob matching and path normalization, add tests, and apply minor UI/accessibility tweaks. - grepSearch: Normalize backslashes in file globs, detect when a glob includes directory components, and match against relative file paths when appropriate. Rewrote globToRegex to correctly handle **/, **, *, ?, and {a,b} patterns while preserving directory semantics. Added tests to exercise directory globs and JS fallback behavior. - projectConfigService: Add utilities to detect absolute paths across platforms, infer project-relative paths from foreign-platform absolute paths (e.g. Windows paths on POSIX), and return portable relative paths for config saving. Added a test to ensure foreign absolute process paths are normalized to portable relative paths in saved config. - CodeHighlighter: Adjust copy button rendering so the auto position renders consistently. - AppearanceSection: Add aria-pressed to theme swatch button and an aria-label to the custom terminal font input to improve accessibility. These changes improve cross-platform behavior for globs and config paths and address minor UX/accessibility issues. --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Arul Sharma <arul28@users.noreply.github.com>
A /grill-me session (docs/brainstorms/self-improving-orchestration.md) re-pointed the design to the operator's actual pain (green-but-wrong PRs + cost/babysitting), superseding parts of the original: - #1 deliverable = semantic verifier-critic (fresh read-only codex, judges green PRs vs per-slice acceptance criteria, triage-not-block: confident-pass auto-merges, flagged held). - avoid Claude Agent SDK; peers always codex (cursor manual-only); Motoko = persona+conductor (hybrid default + fully-agentic toggle; consequential gates never relax). - memory DESCOPED to a server-owned SQLite episode ledger + reflections + one-way prompt injection (deletes the peer-writable shared store + MCP-proxy + poisoning surface). - cost = codex rate-limits (reserve 20% weekly), not $ cap; surface codex usage in cockpit. - surface target = GITS as an installable Android PWA with web push (Telegram = stopgap). - build order: verifier-critic → ledger+usage → auto-answerer → routing tuning → agentic toggle. DESIGN.md gets a "Revision 2" callout; H0_CONFINEMENT.md forward-links the verifier-critic; TODO re-sequenced verifier-first. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…age, not block) Build item #1 from the grilling (the operator's #1 pain: green-but-wrong PRs). After the mechanical H0 gate is green, a FRESH read-only codex agent judges the diff against the slice's acceptance criteria + an adversarial "what did it miss" pass, and TRIAGES the PR — it never blocks the chain. - Contracts (packages/contracts/src/gits.ts): GitsVerifier{Verdict,Confidence,Recommendation}, GitsSemanticVerifyInput (worktree, baseRef, acceptanceCriteria[], model), GitsSemanticVerifyResult (verdict/confidence/recommendation/reasons/missed/criteriaProvided), GitsSemanticVerifierError. - Service GitsSemanticVerifier + Layer GitsCodexVerifierAdapter: - computes `git diff baseRef..HEAD` (truncated), builds an injection-aware prompt (diff = UNTRUSTED data; reviewer must ignore embedded instructions), runs `codex exec --sandbox read-only -m <model>` against the peer codex home, and Schema-parses the JSON verdict (no raw JSON.parse). - triage: pass + (medium|high) + criteriaProvided -> auto-merge; else hold-for-review. No criteria -> criteriaProvided=false -> always hold. Cheap tier (gpt-5.4-mini) escalates ONCE to gpt-5.5 on uncertain. Read-only: even if prompt-injected it cannot modify the repo. - wired into server.ts GitsLayerLive. 5/5 unit tests (mocked ProcessRunner); contracts typecheck clean. Complements GitsVerificationGate (mechanical) with the SEMANTIC layer. Codex-only, no Claude SDK. Follow-ups: acceptance-criteria slice-format plumbing + autopilot wiring + live codex-exec smoke. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…share bootstrap reader Follow-up cleanups from the upstream connection-rewrite merge. pingdotgg#1 Centralize the desktop-local classification. The renderer was inlining `target._tag === "BearerConnectionTarget" && connectionId.startsWith("local:")` in ~7 places to detect a WSL / desktop-local environment. Add connection/desktopLocal.ts as the single source of truth (DESKTOP_LOCAL_CONNECTION_ID_PREFIX, desktopLocalConnectionId for the producer, isDesktopLocalConnectionTarget for consumers) and route platform.ts plus every consumer (Sidebar, ConnectionsSettings, ProviderUpdate*) through it. pingdotgg#2 Carry the WSL label at registration time. platform.ts now labels a secondary from the desktop bootstrap (e.g. "WSL (Ubuntu)") instead of the generic descriptor label, so the provider feature no longer recovers the distro by matching the environment's loopback URL against the bootstrap list. Drops the brittle localBackendInstanceId URL-matcher. pingdotgg#3 Share the desktop-bootstrap reader. Extract readDesktopSecondaryBootstraps into desktopLocal.ts (used by both the platform source and the renderer) and add a useDesktopLocalBootstraps() hook, replacing the Sidebar's bespoke setInterval poller. The platform source's Effect poller and the React hook remain separate timers (different runtimes), but they now read through one function. Verified: web typecheck, connection + provider-logic tests, and lint pass.
…nchmarks to README
…cy-backport fix(deps): backport upstream security updates
… fill, and add favorite model reordering Refine the model selector on both Web/Desktop and Mobile to fix top-light/bottom-heavy visual balance, simplify active row styling, and support cross-provider favorite ordering synced across devices: - Remove the persistent gray background pill on selected model rows on both Mobile (`ThreadSettingsRows`) and Web/Desktop (`ModelListRow`), keeping a clean checkmark and semibold label. - Strengthen the top provider bar (grounded 40pt pill tray with 18pt icons and 13.5px active labels on Mobile; grounded `bg-muted/35` header bar with elevated active pills and `size-4` icons on Web), tighten list row density (`40pt` / `14.5px` on Mobile; `min-h-8` / `13px` on Web), and slim the bottom reasoning deck (`28pt` slider on Mobile, `26px` on Web). - Respect the user's persisted `ServerSettings.favorites` order in the Favorites tab on both surfaces, adding `reorderModelFavorites` in `@t3tools/shared/serverSettings` (preserving offline/locked favorite slots), direct `@dnd-kit` drag-to-reorder handles on Web/Desktop, and a Reanimated drag-reorder mode on Mobile (accessible via `...` -> Reorder favorites or long-pressing any favorite row). - Update 10-locale translations across Web and Mobile, update `T4_CUSTOMIZATIONS.md` Lock pingdotgg#1, and add unit and Chromium browser tests.
Increase the Web/Desktop model picker list viewport height from h-52 (208px, ~5.5 rows) to h-80 (320px, ~9 rows; ~28% taller overall popup) for both the main model list and the sortable Favorites list, raise the bottom scroll-fade threshold to >8 items, update T4_CUSTOMIZATIONS.md Lock pingdotgg#1, and add a Chromium height assertion.
…r into Settings Keep the quick model picker focused on selecting and starring models without drag handles or reorder chrome, and place cross-provider favorite ordering in Settings -> Providers where provider and model management already lives: - Remove `@dnd-kit` drag handles (`SortableFavoritesModelList` / `leadingAccessory`) from Web/Desktop `ModelPickerContent` and `ModelListRow`, and remove the `Reorder favorites` mode / long-press reorder trigger from Mobile `ThreadSettingsSheet` and `ThreadSettingsRows.shared`, while continuing to render the Favorites tab in the saved `ServerSettings.favorites` order. - Add `FavoriteModelsSection` to Web/Desktop Settings -> Providers (`ProviderSettingsPanel.tsx`, drag-and-drop + up/down arrows + unstar) and Mobile Settings -> Providers (`SettingsProviderAccountsRouteScreen.tsx`, Reanimated `SettingsDragHandle` + unstar), syncing the shared cross-provider order across devices. - Update 10-locale translations across Web and Mobile (`i18n:check` green), add Chromium browser tests for `FavoriteModelsSection` and clean `ProviderModelPicker`, and update `T4_CUSTOMIZATIONS.md` Lock pingdotgg#1.
…footer deck Fix top-light / bottom-heavy visual imbalance in the desktop model picker popover: - Anchor the top header (`h-12`, `bg-accent/55 dark:bg-foreground/4`) with a recessed segmented pill rail (`bg-foreground/6`), crisp elevated active pill (`bg-popover shadow-xs`), and grounded circular search button (`size-8`) so the header visually bookends the popover. - Size the model list adaptively up to `max-h-80` (`320px`) instead of leaving an empty vertical void on shorter Favorites lists while keeping the full 320px viewport on 9+ model lists. - Unify and lighten the bottom control deck (`bg-accent/45 dark:bg-foreground/4` matching the top bar, softer inner hairline seam, slimmer `24px` capsule slider with `18px` thumb matching the `24px` speed pill and airier luminous cobalt gradient). - Update `T4_CUSTOMIZATIONS.md` Lock pingdotgg#1 and verify with Chromium browser tests, React Compiler, and lint.
…ive bottom scroll blur Avoid unused whitespace on short Favorites/provider lists while clearly signaling overflow on long model catalogs: - Measure rendered `LegendList` content height in `ModelPickerList` so short lists (1-8 models) fit tightly with zero dead gap, and cap overflowing lists at `314px` so the bottom peeking row sits cleanly behind a progressive `backdrop-filter: blur(2px)` + popover fade veil (`::before` + `::after`) that clears once scrolled to the end. - Update `ProviderModelPicker.browser.test.tsx` to verify both tight short-list sizing (no bottom fade) and capped 314px overflow sizing (`data-scroll-bottom="true"`), and update `T4_CUSTOMIZATIONS.md` Lock pingdotgg#1.
the biome binary has crashed my computer enough times that i don't want it anywhere near htis machine...
Summary by CodeRabbit
Chores
New Features
Bug Fixes