1. 14 1月, 2026 9 次提交
    • Adeniji Adekunle James's avatar
      feat: Git collaboration tools with branch management (#2139) · ec9b5ede
      Adeniji Adekunle James 提交于
      <!-- This is an auto-generated description by cubic. -->
      ---
      ## Summary by cubic
      Add Git collaboration with branch management and collaborator controls.
      Improves GitHub sync with conflict handling, fetch/pull/rebase/merge
      support, and safer push options.
      
      - **New Features**
      - Branch management: create, switch, rename, delete, and merge branches;
      list local/remote; detect conflicts; rebase continue/abort and merge
      abort.
      - Collaborators: list, invite, and remove collaborators in Publish and
      App Details when connected.
      - Sync improvements: fetch/pull (with optional rebase), merge, conflict
      inspection, branch rename, and reset; push supports force and
      force-with-lease.
      - UI updates: branch combobox with refresh/create actions; integrated
      Branch and Collaborator managers; clearer push success feedback.
      
      - **Tests**
      - New e2e: covers creating, switching, renaming, merging, and deleting
      branches.
      - Updated GitHub e2e and snapshots for branch UI and push success
      message.
      - Test helper adds “publish” mode; fake GitHub server adds collaborator
      endpoints and seed data.
      
      <sup>Written for commit a9a3166d3742b0fe3e672d69a12531b443b653f9.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      
      <!-- CURSOR_SUMMARY -->
      ---
      
      > [!NOTE]
      > Introduces comprehensive Git collaboration features with UI, IPC, and
      test coverage.
      > 
      > - **Branch management UI**: `GithubBranchManager` for
      create/switch/rename/delete/merge, refresh, source branch selection,
      conflict banners; integrated into `GitHubConnector` and Publish/App
      Details panels
      > - **Collaborator management UI**: `GithubCollaboratorManager` to
      list/invite/remove collaborators when connected
      > - **Enhanced sync flow**: `GitHubConnector` supports rebase status,
      abort/continue, “Rebase and Sync”, safe force push (`force-with-lease`),
      structured errors, auto-sync deduping
      > - **New IPC/git ops**: handlers and client methods for `fetch`,
      `pull`, `rebase` (abort/continue), `merge` (abort), `branch` CRUD, list
      local/remote branches, conflict listing, git state checks; `git_utils`
      adds native/isomorphic implementations and conflict/state detection
      > - **Testing & mocks**: New e2e `git_collaboration.spec.ts` (branch
      lifecycle, collaborators), updated GitHub specs/snapshots; fake GitHub
      server adds collaborator endpoints and push event tweaks
      > - **Plumbing**: Preload exposes new GitHub IPC channels; types
      extended (`GithubSyncOptions`, git param types)
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      210af660701490139d75b1be86c55e9782056ade. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      ec9b5ede
    • Will Chen's avatar
      List files: recursive (#2169) · 59b721b1
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > **Enhancements**
      > - `list_files` now accepts `recursive` (default: false); non-recursive
      uses `/*`, recursive uses `/**`; consent preview/XML reflect recursion
      and UI title shows "(recursive)".
      > - UI: `dyad-list-files` renders as a collapsible panel with chevron
      toggle and abbreviated file list with total count; wired through
      `DyadMarkdownParser`.
      > 
      > **Safety/Infra**
      > - Validates directory input via `resolveDirectoryWithinAppPath` to
      prevent traversal (Windows/POSIX cases covered) with unit tests.
      > - Fake LLM server resets fixture turn counting per prompt (counts tool
      results after last user message) for stable multi-prompt E2E.
      > - E2E: adds fixtures and snapshots for recursive and non-recursive
      modes; shorter toast duration in test mode to speed tests.
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      3f366934b050a583ae66168e4c924a97a5529f51. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ---
      ## Summary by cubic
      Add recursive support to the local agent list_files tool and make
      results collapsible in the chat UI. Includes E2E coverage and a fix to
      fixture turn counting for stable multi-prompt runs.
      
      - **New Features**
      - list_files accepts recursive (default: false); uses "/*" for
      non-recursive and "/**" for recursive.
      - Consent preview/XML and UI reflect recursion; collapsible panel shows
      abbreviated list with total count.
      - Recursive attribute wired through the markdown parser; added E2E tests
      and snapshots for both modes.
      
      - **Bug Fixes**
      - Validate directory paths to prevent path traversal outside the app
      directory.
      - Fake LLM server counts tool results after the last user message to
      reset turns per prompt.
        - Shorter toast duration in test mode to speed up E2E runs.
      
      <sup>Written for commit 3f366934b050a583ae66168e4c924a97a5529f51.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      59b721b1
    • Will Chen's avatar
      Fix auto model for engine (#2170) · 759c60f2
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > Fixes auto/local-agent model routing and provider-specific behavior.
      > 
      > - Refactors `llm_engine_provider` to require `chatParams { providerId
      }`; wires it into custom fetch and model constructors (`provider`,
      `chatModel`, `responses`)
      > - Updates `get_model_client` to pass `providerId`, tag fallback models
      (`openai`, `anthropic`, `google`), and use `responses()` for OpenAI in
      `local-agent` and auto fallback
      > - Adds Responses API support to fake LLM server (`/v1/responses`) with
      streaming SSE handler and dump generation
      > - Extends test helper to parse Responses API dumps (`body.input`) and
      adds `localAgentUseAutoModel` setup flag
      > - New e2e test `local_agent_auto.spec.ts` with snapshot verifying
      request payload via Responses API
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      e5b02d253c9842f14da0099bb11e1b05548e9245. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ---
      ## Summary by cubic
      Fixes auto model selection in the Dyad engine by passing the correct
      providerId with each request. Ensures provider-specific options are
      applied and avoids incorrect defaults.
      
      - **Bug Fixes**
      - Pass providerId to chat/responses models and into the fetch layer for
      getExtraProviderOptions.
      - Remove originalProviderId from createDyadEngine; add ChatParams and
      update provider API signatures.
      - Tag fallback models with providerId (openai, anthropic, google) and
      forward model.provider in getModelClient.
      
      <sup>Written for commit e5b02d253c9842f14da0099bb11e1b05548e9245.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      759c60f2
    • Will Chen's avatar
      Improve local agent prompt (#2166) · be7b6977
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > Improves the local agent system prompt for safer, more consistent
      edits.
      > 
      > - Adds a structured `development_workflow` (Understand → Plan →
      Implement → Verify → Finalize) outlining use of `grep`/`code_search`,
      `read_file`, `update_todos`, `run_type_checks`, and `set_chat_summary`
      > - Refines `tool_calling_best_practices` to prefer `edit_file` over
      `write_file`, formats tool names with backticks, and reiterates focused,
      minimal, and error-tolerant edits
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      a649625cb856a04afe8e61cb3df832637249569e. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ---
      ## Summary by cubic
      Clarified the local agent prompt with a structured development workflow
      and clearer tool guidance to make edits safer and more consistent.
      
      - **New Features**
      - Added a development_workflow with steps: Understand → Plan → Implement
      → Verify → Finalize (using grep/code_search, read_file, update_todos,
      run_type_checks, set_chat_summary).
      - Updated tool_calling_best_practices to prefer edit_file over
      write_file and formatted tool names for clarity.
      
      <sup>Written for commit a649625cb856a04afe8e61cb3df832637249569e.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      be7b6977
    • Will Chen's avatar
      Code search tool (#2167) · 50ca2fa1
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > <sup>[Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) is
      generating a summary for commit
      3cc11d352d12a0f51da474e5e3a281c128f2a9c4. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ## Summary by cubic
      Adds a semantic code search tool to the local agent with an interactive
      UI card, so the agent can find relevant files by meaning, not just text.
      Includes E2E coverage for the full flow.
      
      - New Features
      - code_search tool: gathers project files, calls Dyad Engine
      /tools/code-search, and returns relevant file paths.
      - Streams a dyad-code-search tag while running; shows pending state in
      the UI. Requires a Dyad Pro API key.
      - DyadCodeSearch UI: collapsible card with query preview, results, and
      loading indicator.
      - Markdown parser now passes query and state; tool registered in
      tool_definitions.
      
      - Tests
        - Added E2E spec, fixture, and snapshot for local-agent code search.
      - Fake LLM server includes a mock /engine/v1/tools/code-search endpoint.
      
      <sup>Written for commit 3cc11d352d12a0f51da474e5e3a281c128f2a9c4.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      50ca2fa1
    • Will Chen's avatar
      Enable type check tool by default (agent mode) and allow "never" for agent tool perms (#2165) · 5bd8a703
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > - **Agent tool consent:** Add `"never"` to `AgentToolConsent` schema,
      update imports to `lib/schemas`, surface "Never allow" in settings UI,
      and prevent consent prompts/execution for tools marked `"never"`
      (skipped in `buildAgentToolSet`; error if prompted).
      > - **Type checks tool:** Remove settings gate so `run_type_checks` is
      available by default; keep default consent `"always"`; reflected in e2e
      tool list.
      > - **UI/UX:** Truncate long tool descriptions to 100 chars in Agent
      Tools settings.
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      50e3ef56792adc578aaefcdf7a61246344a475ad. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ---
      ## Summary by cubic
      Enables the Type Checks tool by default in agent mode and adds a “never”
      consent option to permanently block tools. Agents now skip any tool
      marked “never”.
      
      - **New Features**
        - Added “Never allow” in Agent Tools settings.
        - Consent schema now supports ask, always, never.
        - Agent tool set excludes tools with “never”.
      - Type Checks tool is available by default (no longer gated by
      enableAutoFixProblems).
        - Truncated long tool descriptions in settings to 100 chars.
      
      - **Refactors**
        - Moved AgentToolConsent type to lib/schemas and updated imports.
      
      <sup>Written for commit 50e3ef56792adc578aaefcdf7a61246344a475ad.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      5bd8a703
    • Will Chen's avatar
      Show info toast when switching to agent mode (#2160) · 5e71af36
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > Adds an informational toast to guide users when enabling the new agent
      mode.
      > 
      > - New `LocalAgentNewChatToast` with dismiss and "Never show again"
      actions (auto-dismiss after 8s)
      > - `ChatModeSelector`: when switching to `local-agent` on `/chat` with
      existing messages, show the toast using `sonner`; uses TanStack Router
      for route detection and Jotai chat state
      > - `UserSettingsSchema`: adds `hideLocalAgentNewChatToast` to persist
      user preference
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      b07beac9d13b87b2e08ea1a9a376994148beb6c9. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ---
      ## Summary by cubic
      Shows a friendly info toast when switching to Agent mode on the chat
      page, encouraging a fresh chat for better results. Includes dismiss and
      “never show again” options that respect user preferences.
      
      - **New Features**
      - Added LocalAgentNewChatToast, shown when selecting local-agent on
      /chat with existing messages.
      - “Never show again” persists via hideLocalAgentNewChatToast in
      UserSettingsSchema.
      - Uses TanStack Router to detect the chat route; toast auto-dismisses
      after 8s.
      
      <sup>Written for commit b07beac9d13b87b2e08ea1a9a376994148beb6c9.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      5e71af36
    • Will Chen's avatar
      skip failing tests on windows (#2164) · d40aa21e
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > Skips problematic Windows runs for select e2e tests to stabilize CI.
      > 
      > - Switches `mcp.spec.ts`, `security_review.spec.ts`, and
      `supabase_migrations.spec.ts` tests to `testSkipIfWindows`, wrapping the
      calculator, security review (incl. edit/use knowledge), and supabase
      migrations (incl. native git) cases
      > - Cleans up imports accordingly; no application code changes
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      b3ce59d4c6da6bfbc2888636cc239ec1ed3cc6ba. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ---
      ## Summary by cubic
      Skip failing Windows-only e2e tests to stabilize CI; non-Windows runs
      are unchanged.
      
      - **Bug Fixes**
        - Use testSkipIfWindows for:
          - mcp.spec.ts: “mcp - call calculator”
      - security_review.spec.ts: “security review - edit and use knowledge”
          - supabase_migrations.spec.ts: “supabase migrations”
        - No test logic changes; only conditional skip on Windows.
      
      <sup>Written for commit b3ce59d4c6da6bfbc2888636cc239ec1ed3cc6ba.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      d40aa21e
    • Will Chen's avatar
      grep tool (#2161) · 6d7ed897
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > Introduces fast, scoped code search in local-agent mode and renders
      results inline in chat.
      > 
      > - Adds `grep` tool (ripgrep-backed) with include/exclude globs and
      optional case sensitivity; returns `path:line: text` matches
      > - New `DyadGrep` component and `DyadMarkdownParser` support for
      `dyad-grep`; attribute parsing updated to allow hyphenated names
      > - Extracts ripgrep helpers to `ipc/utils/ripgrep_utils.ts` and
      refactors `app_handlers` to use them
      > - Registers tool in local agent tool set
      > - E2E coverage: new fixture, Playwright spec, and ARIA snapshots
      validating two searches and rendered output
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      35cd925caf321c1c987b636d9539aed465284f1b. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ---
      ## Summary by cubic
      Adds a grep tool to the local agent using ripgrep and a new <dyad-grep>
      UI to show results in chat. Enables fast, scoped code searches with
      include/exclude globs and case sensitivity.
      
      - **New Features**
      - New local-agent tool grep (ripgrep-backed) that returns file:line:
      text matches; case-insensitive by default with include_pattern,
      exclude_pattern, and case_sensitive options.
      - New DyadGrep chat component and parser support (<dyad-grep>) with
      collapsible results, progress/aborted states, and copyable output.
      - Shared ripgrep utils (executable path, size limit, default exclude
      globs) extracted and reused; tool registered in tool_definitions.
      
      - **Tests**
        - Added E2E spec for grep in local-agent mode with ARIA snapshots.
        - New fixture driving two searches and validating rendered results.
      
      <sup>Written for commit 35cd925caf321c1c987b636d9539aed465284f1b.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      
      ---------
      Co-authored-by: 's avatargemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
      6d7ed897
  2. 13 1月, 2026 10 次提交
    • Adeniji Adekunle James's avatar
      Code View Search & Fullscreen Mode (#1987) (#1988) · 381db427
      Adeniji Adekunle James 提交于
      Closes #1987
      
      
      
      
      
      
      
      
      
      
      <!-- This is an auto-generated description by cubic. -->
      ---
      ## Summary by cubic
      Adds file content search to Code View and a fullscreen toggle to focus
      on code. Users can search across file contents with highlights and
      snippets, and jump to lines. Addresses Linear #1987.
      
      - New Features
      - File Tree search: debounced input, content search via ripgrep (1MB max
      per file), highlights in names, expandable snippets with line numbers,
      match count, and empty/error states.
        - Fullscreen mode: toggle in toolbar, Esc to exit, locks page scroll.
      - IPC: search-app-files handler using ripgrep (via @vscode/ripgrep;
      binary bundled in Forge extraResources) with UTF-8-safe snippet
      extraction; exposed via IpcClient and preload.
        - Hook: useSearchAppFiles with React Query.
      - UI/Types: FileTree now takes appId; added AppFileSearchResult type;
      selectedFile supports line for navigation.
        - Tests: e2e covers content search and navigating to the matched line.
        - CI: set GITHUB_TOKEN to fetch ripgrep binaries.
      
      <sup>Written for commit 97142126c549932d58908df5c842f44ae182c94e.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      
      
      
      
      
      
      
      
      
      
      
      
      <!-- CURSOR_SUMMARY -->
      ---
      
      > [!NOTE]
      > Introduces fast file content search in Code View and fullscreen
      viewing, wiring UI to IPC and packaging for bundled ripgrep.
      > 
      > - UI: `FileTree` now supports debounced content search with
      highlights, expandable snippets, match counts, and line navigation;
      `selectedFile` carries `line`; `FileEditor` accepts `initialLine` and
      jumps to it; `CodeView` adds fullscreen toggle (Esc to exit)
      > - IPC: New `search-app-files` handler using `@vscode/ripgrep` with
      UTF-8-safe snippets; exposed via `preload` and
      `IpcClient.searchAppFiles`; adds `AppFileSearchResult` type
      > - Packaging/CI: Bundle ripgrep binaries via Forge `extraResource` and
      set `GITHUB_TOKEN` in CI for ripgrep install; add `@vscode/ripgrep`
      dependency; bump version to `0.33.0-beta.2`
      > - Tests: New Playwright e2e verifies search results and navigation to
      matched line
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      97142126c549932d58908df5c842f44ae182c94e. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      ---------
      Co-authored-by: 's avatarWill Chen <willchen90@gmail.com>
      381db427
    • Will Chen's avatar
      Fix chat mode test (#2159) · af522d32
      Will Chen 提交于
      fix test breakage from https://github.com/dyad-sh/dyad/pull/2155
      
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > <sup>[Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) is
      generating a summary for commit
      22342fd91b4708311796b51552b0106acea66b9b. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ## Summary by cubic
      Adjusted chat mode selection in e2e tests to match updated UI labels and
      prevent failures. Uses "Agent v2" and "Build with MCP" instead of the
      old "(experimental)" labels.
      
      <sup>Written for commit 22342fd91b4708311796b51552b0106acea66b9b.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      af522d32
    • Will Chen's avatar
      log chat mode used in chat submit (#2156) · 229e765f
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > Adds analytics context to chat submissions.
      > 
      > - Update `ChatInput.tsx` to capture `chat:submit` with `{ chatMode:
      settings?.selectedChatMode }`
      > - Update `HomeChatInput.tsx` to capture `chat:home_submit` with `{
      chatMode: settings?.selectedChatMode }`
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      2b84eb984bd1c5368c1aeba03db5fd1a2f431bd9. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ## Summary by cubic
      Add chatMode to PostHog analytics on chat submission to track which chat
      mode was used. Applies to chat:submit and chat:home_submit events.
      
      <sup>Written for commit 2b84eb984bd1c5368c1aeba03db5fd1a2f431bd9.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      229e765f
    • Will Chen's avatar
      Experimental badge (#2155) · 32b3d01f
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > Introduces a reusable `ExperimentalBadge` and refines chat mode labels
      in `ChatModeSelector`.
      > 
      > - Adds `ExperimentalBadge` and displays it next to `Agent v2`
      > - Removes "(experimental)" suffix from MCP mode title and tweaks
      layout (flex with gap) for mode headers
      > - Updates `Agent v2` description to "Better at bigger tasks and
      debugging"
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      f513f856f7a223fddfadbb4b0762bf9998295414. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ## Summary by cubic
      Added an Experimental badge component and applied it to Agent v2 in
      ChatModeSelector. Removed "(experimental)" from labels and updated Agent
      v2 description to "Better at bigger tasks and debugging" for clearer
      guidance.
      
      <sup>Written for commit f513f856f7a223fddfadbb4b0762bf9998295414.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      32b3d01f
    • Will Chen's avatar
      Bump to v0.33.0 beta 2 (#2154) · 9d6f9dc9
      Will Chen 提交于
      9d6f9dc9
    • Will Chen's avatar
      Fix unit test in retryWithRateLimit (#2153) · dfccb93a
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > <sup>[Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) is
      generating a summary for commit
      4ef340ba4e26fc3d41a2ea5fea9772ba669f3bd0. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      dfccb93a
    • Will Chen's avatar
      Automatically initialize git safe directory on startup (#2152) · daf69251
      Will Chen 提交于
      See https://github.com/dyad-sh/dyad/issues/2113
      
      <!-- CURSOR_SUMMARY -->
      ---
      
      > [!NOTE]
      > Automatically ensures Git can operate in `dyad-apps` when native Git
      is enabled and centralizes base path resolution.
      > 
      > - Adds `gitAddSafeDirectory(directory)` in `git_utils.ts` to
      idempotently append to global `safe.directory` (uses `normalizePath`,
      logs outcomes)
      > - On startup (`main.ts`), calls
      `gitAddSafeDirectory(getDyadAppsBaseDirectory())` without awaiting
      > - Introduces `getDyadAppsBaseDirectory()` and updates
      `getDyadAppPath()` to use it, consolidating test/prod path logic
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      99911c273fba66190218ecdb1df40d61f12d49a5. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ---
      ## Summary by cubic
      Automatically add the dyad-apps directory to Git’s global safe.directory
      at startup when native Git is enabled. This prevents “detected dubious
      ownership” errors on Windows and unblocks Git operations.
      
      - New Features
      - Added gitAddSafeDirectory(directory) to run git config --global --add
      safe.directory <dir> with logging, normalizing paths and skipping
      duplicates.
      - On app ready, if settings.enableNativeGit, call
      gitAddSafeDirectory(getDyadAppsBaseDirectory()) without awaiting to keep
      startup fast.
      
      - Refactors
      - Introduced getDyadAppsBaseDirectory() and updated getDyadAppPath() to
      use it, centralizing base path logic for test and prod.
      
      <sup>Written for commit 99911c273fba66190218ecdb1df40d61f12d49a5.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      daf69251
    • Will Chen's avatar
      Retry rate limit errors for Supabase API callsites (#2148) · 7749a5d6
      Will Chen 提交于
      Addresses #2147
      
      <!-- CURSOR_SUMMARY -->
      ---
      
      > [!NOTE]
      > Adds robust retry handling for Supabase API interactions to reduce
      flakiness on HTTP 429.
      > 
      > - Introduces `RateLimitError`, `isRateLimitError`,
      `retryWithRateLimit` (defaults: 6 retries, 2s base, capped, jitter,
      scoped logging) and `fetchWithRetry`
      > - Applies retries to key callsites: project API keys, schema/queries,
      secrets, orgs/members/details, projects, project logs, branches,
      function deploy/delete, bulk update, and SQL execution
      > - Standardizes non-429 fetch failures to throw
      `SupabaseManagementAPIError` to preserve response context
      > - Improves function deploy by rebuilding `FormData` per attempt and
      converting 429 to `RateLimitError`
      > - Adds thorough unit tests covering error detection, backoff behavior,
      options, and retry exhaustion
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      eaf86cffb2d2b3a3771e8607a52f4e04af630ecd. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ---
      ## Summary by cubic
      Add automatic retries for Supabase API calls on HTTP 429 using
      exponential backoff with jitter to reduce flakiness and improve
      reliability. Addresses #2147 by applying retries across key management
      and context callsites and adding thorough tests.
      
      - **New Features**
      - Added retryWithRateLimit (defaults: 8 retries, 2s base delay, 30s max,
      10% jitter, scoped logging), isRateLimitError, RateLimitError, and
      fetchWithRetry.
      - Applied retries to fetch-based endpoints and runQuery operations:
      orgs/members/details/projects, project logs, schema/table/function
      queries, secrets/API keys, branches, function deploy/delete and bulk
      update, and SQL execution.
      - Standardized error handling by throwing SupabaseManagementAPIError for
      failed fetches to preserve response details.
      - Added unit tests covering detection, backoff timing, options, retry
      exhaustion, and fetchWithRetry behavior.
      
      <sup>Written for commit c1fbffaf9c559c7f43a6999f4160a81b97ed9eaf.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      7749a5d6
    • Will Chen's avatar
      Rebaseline e2e tests (#2149) · 05e035f6
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > <sup>[Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) is
      generating a summary for commit
      ddc1ebc593ed63e1a3508c4ebc99ca49d3c9943f. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      05e035f6
    • Mohamed Aziz Mejri's avatar
      Adding clear logs button (#2118) · c599f4e5
      Mohamed Aziz Mejri 提交于
      <!-- This is an auto-generated description by cubic. -->
      ## Summary by cubic
      Added a Clear Logs button to the System Messages console to remove all
      logs for the selected app. Renamed the filters button to “Clear Filters”
      and updated e2e tests.
      
      - **New Features**
      - Console adds onClearLogs handler that calls
      IpcClient.clearLogs(selectedAppId), then clears appConsoleEntriesAtom;
      shows a toast on error.
      - E2E test verifies “Clear Logs” removes all entries; existing test
      updated to expect “Clear Filters” label.
      
      <sup>Written for commit cc7cafc267e13e05cdb6cc45b3122ac572fcb048.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      c599f4e5
  3. 12 1月, 2026 1 次提交
    • Mohamed Aziz Mejri's avatar
      Fixing regression and adding plus button to HomeChatInput (#2135) · e99cf759
      Mohamed Aziz Mejri 提交于
      closes #2127 
      This PR includes 
      
      - Fixing the regression introduced in the beta release
      - Adding the plus button to HomeChatInput
      
      I will create a follow-up PR that makes the e2e test more realistic
      
      
      <!-- This is an auto-generated description by cubic. -->
      ---
      ## Summary by cubic
      Adds a plus actions menu to HomeChatInput for attachments and fixes the
      beta regression that prevented attaching files in home chat.
      
      - **New Features**
      - Added AuxiliaryActionsMenu to HomeChatInput with an “Attach files”
      submenu; hides context picker and token toggle when not needed.
      - Made menu props optional (showTokenBar/toggle) and added
      hideContextFilesPicker, improving reuse across inputs.
      
      - **Bug Fixes**
      - Restored file upload by handling menu item onSelect and closing the
      submenu after selection; inputs reset to allow re-uploading the same
      file.
      - Updated the e2e test to open the menu, hover “Attach files,” upload
      via the file input, and close with Escape.
      
      <sup>Written for commit 3db5abc98c9f968cb04eb355a586209e4725be30.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      
      
      
      
      <!-- CURSOR_SUMMARY -->
      ---
      
      > [!NOTE]
      > Introduces a consolidated plus “AuxiliaryActionsMenu” for file/context
      actions in both chat inputs and fixes attachment menu interactions.
      > 
      > - Adds `AuxiliaryActionsMenu` with optional `showTokenBar/toggle`,
      `showContextFilesPicker`, and `isStreaming`; disables attach submenu
      while streaming and conditionally shows context picker and token toggle
      > - Refactors `FileAttachmentDropdown` to render only menu items +
      hidden inputs, use `onSelect` to trigger file pickers, clear input
      values, and close parent via `onMenuClose`
      > - Integrates the new menu into `HomeChatInput` and `ChatInput`; keeps
      `ChatInputControls` and hides context picker where not needed
      > - Updates e2e tests to interact with the new menu, including
      attach-as-context, upload-to-codebase, and drag-and-drop flows;
      standardizes snapshots and closes menus via Escape
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      6b0d1f24b069a9e9b066f8dba59a8f43af318a08. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      e99cf759
  4. 10 1月, 2026 6 次提交
    • Will Chen's avatar
      agent: type check tool (#2137) · dce37cd6
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > Introduces a TypeScript type-check capability and a compact status UI
      in chat.
      > 
      > - Adds `run_type_checks` tool (registered in `tool_definitions`) that
      runs workspace or path-scoped checks via existing
      `generateProblemReport`; formats results as count plus `file:line:col`
      lines
      > - Streams progress and completion using `dyad-status` XML, gated by
      `enableAutoFixProblems`; consent preview reflects targeted paths
      > - Implements `DyadStatus` component for pending/success/error display
      with expandable details and registers `dyad-status` in
      `DyadMarkdownParser`
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      8e308551339675803703f01d3ef2018972904b01. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ---
      ## Summary by cubic
      Add an agent tool to run TypeScript type checks and stream results to
      chat using a new dyad-status UI block. Lets the agent scope checks to
      specific files or folders and shows clear progress and outcomes.
      
      - New Features
      - Added run_type_checks tool: runs TypeScript checks; accepts optional
      paths to limit scope.
      - Streams progress and results via a dyad-status block in chat; shows
      pending/success/error states.
      - Formats output with a count and file:line:col messages, or “No type
      errors found.”
      - Enabled only when Auto Fix Problems is on; consent preview lists
      targeted paths.
      - Added DyadStatus component and registered the dyad-status custom tag
      in DyadMarkdownParser.
      
      <sup>Written for commit 8e308551339675803703f01d3ef2018972904b01.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      
      ---------
      Co-authored-by: 's avatargreptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
      dce37cd6
    • Will Chen's avatar
      Agent TODOs tool (#2136) · 23f9a95e
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > Introduces live Agent to-do tracking during local-agent runs.
      > 
      > - **New tool:** `update_todos` (merge/replace support) added to agent
      toolset; updates per-turn `todos` in `AgentContext` and broadcasts via
      `onUpdateTodos`
      > - **IPC plumbing:** New `agent-tool:todos-update` channel allowlisted
      in `preload`; `IpcClient` adds `onAgentTodosUpdate` and
      `onChatStreamStart` hooks and forwards updates; main handler emits
      updates and initializes `ctx.todos`
      > - **Types:** Adds `AgentTodo` and `AgentTodosUpdatePayload`; extends
      `AgentContext` with `todos` and `onUpdateTodos`
      > - **UI/state:** New `agentTodosByChatIdAtom`; `TodoList` component;
      `ChatInput` renders live todos; renderer subscribes to updates and
      clears todos on stream start/end
      > - **Tests:** E2E snapshot updated with `update_todos` tool schema
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      e2bc12f172b2b6ae15c3514e7e9c4d2b693a6e99. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ---
      ## Summary by cubic
      Adds an Agent TODOs tool and UI to track task progress during local
      agent runs. Live updates stream to the chat and display in a collapsible
      todo list, which clears when a new stream starts.
      
      - **New Features**
      - Added update_todos tool with merge/replace support and status updates;
      broadcasts via onUpdateTodos.
      - Introduced IPC channel agent-tool:todos-update with
      IpcClient.onAgentTodosUpdate and preload whitelist.
        - Defined AgentTodo and AgentTodosUpdatePayload types.
        - Added agentTodosByChatIdAtom and cleanup on chat stream start.
      - Implemented TodoList UI and wired into ChatInput to show live progress
      and counts.
      
      <sup>Written for commit e2bc12f172b2b6ae15c3514e7e9c4d2b693a6e99.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      
      ---------
      Co-authored-by: 's avatarcubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
      23f9a95e
    • Will Chen's avatar
      Local agent auto (#2134) · c145a0cd
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > Improves local-agent auto mode with robust model routing and updates
      tests accordingly.
      > 
      > - Centralizes pro model selection in `getProModelClient`, routing
      OpenAI via `responses` in local-agent and adding local fallback across
      `GPT_5.2`, `Claude Sonnet 4.5`, and `Gemini 3 Flash`
      > - Standardizes model IDs via constants and updates provider/thinking
      flags (adds reasoning for `auto` provider)
      > - e2e: introduce `clickRunSecurityReview()` helper; select Anthropic
      model in local-agent; refresh snapshots to use `reasoning_effort` and
      reflect non-OpenAI model
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      b3fd078d2b893ebc6d011365295948a17ea58c4f. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ---
      ## Summary by cubic
      Enables reliable local-agent auto mode with smart model fallback and
      routes OpenAI models through Responses to keep reasoning features
      working. Standardizes model names with constants.
      
      - **New Features**
      - Auto mode falls back across GPT‑5.2 (OpenAI), Claude Sonnet 4.5
      (Anthropic), and Gemini 3 Flash (Google).
      - OpenAI models use the Responses API to support thinking summaries and
      full functionality.
        - Auto provider enables reasoning options in local-agent.
      
      - **Refactors**
      - Centralized pro model routing in getProModelClient and avoids free
      variants.
      - Added constants for model IDs (GPT_5_2_MODEL_NAME, SONNET_4_5,
      GEMINI_3_FLASH).
      
      <sup>Written for commit b3fd078d2b893ebc6d011365295948a17ea58c4f.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      c145a0cd
    • Will Chen's avatar
      Rebase supabase stale ui baseline (#2133) · 46cc8650
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > Updates E2E snapshot for Supabase stale UI to match current UI.
      > 
      > - Refreshes `supabase_stale_ui.spec.ts_supabase---stale-ui-2.aria.yml`
      with new elements: `button "Continue"`, `button "Undo"`, additional
      imgs, and texts like `test-model` and `less than a minute ago`
      > - Removes prior instructional paragraph about clicking the chat
      suggestion
      > - No app logic changes; test snapshot only
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      5a481c54b412432d8b892a0b344107cb96c1bb25. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      46cc8650
    • Will Chen's avatar
      Minor import clean-ups (#2132) · 465743eb
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > Updates AI SDK imports to use the top-level `ai` package instead of
      `node_modules/ai/dist`.
      > 
      > - In `prepare_step_utils.ts` and its tests, replace imports of
      `ImagePart`, `ModelMessage`, `TextPart`, and `UserModelMessage` to come
      from `ai`
      > - No functional code changes beyond import paths
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      117078577aa8f7a86564f8a133c2708601f4acb1. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ## Summary by cubic
      Replaced deep imports from node_modules/ai/dist with the ai package
      entrypoint to standardize and simplify module imports. This avoids
      brittle paths and improves build compatibility.
      
      <sup>Written for commit 117078577aa8f7a86564f8a133c2708601f4acb1.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      465743eb
    • Will Chen's avatar
      Inject web crawl user messages correctly (#2129) · eea719f0
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > **Fix stable user-message injection across steps**
      > 
      > - Extracts `prepareStepMessages` logic into `prepare_step_utils` with
      `transformContentPart`, `processPendingMessages`, and
      `injectMessagesAtPositions` to track injected messages with
      `insertAtIndex` and FIFO `sequence`, then re-inject them each step at
      the same positions
      > - Updates `local_agent_handler` to use `prepareStepMessages`,
      maintaining `pendingUserMessages` and accumulated `allInjectedMessages`
      > 
      > **Web crawl behavior update**
      > 
      > - `web_crawl` now requires a screenshot and injects only screenshot +
      markdown (HTML removed); clone instructions emphasize screenshot as
      primary visual reference
      > 
      > **Tests**
      > 
      > - Adds comprehensive unit tests for the new utilities and an
      integration-style multi-step simulation validating stable ordering and
      reinjection
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      3b02b73cf25b497a2d09ab6239ec9e3598ae823e. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ---
      ## Summary by cubic
      Fixes incorrect injection of web-crawl user messages across agent steps.
      Messages are now re-injected at stable positions each step so screenshot
      and markdown context persist across tool rounds.
      
      - **Bug Fixes**
      - Track injected user messages with an insertion index and re-inject
      them every step (sorted in reverse) to keep order and prevent loss.
      - Web crawl now requires a screenshot and injects only screenshot +
      markdown (HTML removed). Updated clone instructions to emphasize the
      screenshot.
      
      <sup>Written for commit 3b02b73cf25b497a2d09ab6239ec9e3598ae823e.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      eea719f0
  5. 09 1月, 2026 9 次提交
    • Will Chen's avatar
      Responses API for local agent & openAI (#2126) · ddef8062
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > Introduces Responses API support for local-agent flows and aligns
      OpenAI reasoning options.
      > 
      > - In `get_model_client.ts`, when using Dyad Pro and `selectedChatMode`
      is `"local-agent"` with OpenAI, route to `provider.responses(...)`
      instead of chat model
      > - In `llm_engine_provider.ts`, add `responses(modelId)` returning
      `OpenAIResponsesLanguageModel`, refactor request handling into
      `createDyadFetch()`, and expose `provider.responses`
      > - In `thinking_utils.ts`, for OpenAI in `local-agent` mode, send `{
      reasoning: { summary: "detailed", effort: "medium" } }`; otherwise keep
      `reasoning_effort: "medium"`
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      f434775c1c42fd9a647b5ee0e51cf5aecc7a7c8f. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      ddef8062
    • Will Chen's avatar
      Better UX for keep going in Supabase integration (#2123) · 99a5ffe0
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > Improves the Supabase integration completion UX by adding an
      actionable control that advances the chat flow.
      > 
      > - Adds a `Continue` button (using `useStreamChat`) that sends
      `"Continue. I have completed the Supabase integration."` to the active
      chat via `selectedChatIdAtom`
      > - Disables the button while `isStreaming` and shows an error toast if
      no chat is available
      > - Removes the prior instructional text about clicking a chat
      suggestion
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      b384d8756c6861c7682b422883314eea522cc060. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ---
      ## Summary by cubic
      Adds a Continue button to the Supabase integration flow that sends a
      “Continue. I have completed the Supabase integration.” message to the
      current chat, so users can proceed without hunting for the chat
      suggestion.
      
      - **New Features**
      - Added Continue button that calls streamMessage with the active chatId
      and disables while streaming.
        - Shows an error toast if no chat is available.
      
      <sup>Written for commit b384d8756c6861c7682b422883314eea522cc060.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      
      ---------
      Co-authored-by: 's avatargemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
      99a5ffe0
    • Will Chen's avatar
      Agent: DB tools (#2122) · 74e3dd3a
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > Introduces lighter, more targeted Supabase DB tooling and matching UI
      to reduce heavy schema fetches.
      > 
      > - Adds `get_supabase_project_info` and `get_supabase_table_schema`
      tools (XML streaming with `dyad-supabase-project-info` and
      `dyad-supabase-table-schema`), and registers them in `TOOL_DEFINITIONS`
      > - Removes `get_database_schema` tool
      > - UI: new `DyadSupabaseProjectInfo` and `DyadSupabaseTableSchema`
      components; `DyadMarkdownParser` recognizes/render new tags with
      loading/aborted states
      > - Supabase admin refactor: `buildSupabaseSchemaQuery(tableName)` for
      per-table filtering, add `SUPABASE_FUNCTIONS_QUERY`,
      `getSupabaseProjectInfo`, and `getSupabaseTableSchema`; lightweight
      table-names query; preserves test-build outputs
      > - Touches agent consent/execute path and renderer parsing for new tags
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      b772b0d48daf5798541597bcecfde42c39ea0e34. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ---
      ## Summary by cubic
      Adds two Supabase DB tools for lightweight project info and targeted
      table schema retrieval, replacing the previous catch-all schema tool.
      Improves performance by letting the agent discover tables first, then
      fetch specific schemas as needed.
      
      - **New Features**
      - Added get_supabase_project_info: returns project ID, publishable key,
      secret names, and table names; optionally includes database functions.
      - Added get_supabase_table_schema: optional tableName for per-table
      schema; returns columns, policies, triggers.
      - Replaced SUPABASE_SCHEMA_QUERY with buildSupabaseSchemaQuery to
      support per-table filtering and escape inputs.
      - Removed get_database_schema and updated TOOL_DEFINITIONS to register
      the new tools.
      - Added UI tags and components to render results:
      dyad-supabase-project-info and dyad-supabase-table-schema.
      
      <sup>Written for commit b772b0d48daf5798541597bcecfde42c39ea0e34.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      74e3dd3a
    • Will Chen's avatar
      fix image attachments (#2124) · 4ca4f9fc
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > - **Image attachments handling:** In `prepareMessageWithAttachments`,
      images are now read, converted to base64, and included as `image`
      (base64) with `mediaType` instead of raw Buffers, ensuring proper JSON
      serialization for `aiMessagesJson`.
      > - **Storage limit increase:** `MAX_AI_MESSAGES_SIZE` raised from 1MB
      to 10MB in `ai_messages_utils.ts` to accommodate larger serialized
      message payloads.
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      b81483775dc7e6535c7396f417818eb638003248. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ## Summary by cubic
      Fixes image attachments by storing images as base64 with a mediaType so
      they serialize to JSON correctly. Also increases ai_messages_json size
      limit to 10MB to prevent save failures.
      
      - **Bug Fixes**
      - Store .jpg, .jpeg, .png, .gif, .webp as base64 and set mediaType
      (e.g., image/jpeg, image/png) for safe JSON serialization.
        - Raise MAX_AI_MESSAGES_SIZE from 1MB to 10MB.
      
      <sup>Written for commit b81483775dc7e6535c7396f417818eb638003248.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      4ca4f9fc
    • Will Chen's avatar
      web crawl/clone (#2101) · ed3e1350
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > Introduces website crawling for cloning workflows and updates tool I/O
      to support multimodal follow-ups while keeping tool results text-only
      for model compatibility.
      > 
      > - Adds `web_crawl` tool (consent preview, XML marker, Dyad Engine call
      requiring Dyad Pro API key) that returns HTML/markdown/screenshot and
      appends cloning instructions plus screenshot and content snippets via
      `appendUserMessage`
      > - Updates tool system: new `ToolResult` types,
      `UserMessageContentPart`, and conversion to AI SDK V3
      (`convertToolResultForAiSdk`); tool `execute` now returns `ToolResult`
      > - Enhances streaming: handler tracks `pendingUserMessages` and injects
      them between steps via `prepareStep` to deliver images/content to the
      model
      > - Registers `web_crawl` in `TOOL_DEFINITIONS`; e2e snapshot updated to
      include the new tool
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      0205e38c2f067a1c2307b17a1397e4dcf3ce422d. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ---
      ## Summary by cubic
      Adds a web_crawl agent tool to crawl a URL and return page content and a
      screenshot for cloning. Tool results are structured text, and the
      screenshot is injected as a follow-up user image for multimodal models.
      
      - New Features
      - Added web_crawl tool with consent preview and XML marker; calls Dyad
      Engine /tools/web-crawl.
      - Returns markdown and HTML plus a screenshot URL, with clear
      placeholder image instructions for replication.
      - Introduced ToolResult (text-only) and convertToolResultForAiSdk to
      LanguageModelV3; updated tool execution to use it.
      - Added appendUserMessage and step injection to include images after
      tool results.
      - Registered the tool in TOOL_DEFINITIONS with default consent set to
      ask; requires a Dyad Pro API key in settings.
      
      <sup>Written for commit 0205e38c2f067a1c2307b17a1397e4dcf3ce422d.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      ed3e1350
    • Mohamed Aziz Mejri's avatar
      Adding reference to the DeepWiki documentation (#2119) · ba6ff5ca
      Mohamed Aziz Mejri 提交于
      <!-- This is an auto-generated description by cubic. -->
      ## Summary by cubic
      Added a link to the DeepWiki documentation in CONTRIBUTING.md to give
      contributors an in-depth overview of the Dyad codebase.
      
      <sup>Written for commit 035bc8d1951dfcb99113f80953b82dc10173c66a.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      ba6ff5ca
    • Mohamed Aziz Mejri's avatar
      Fix : Keep plus button enabled while streaming (#2117) · 5dee6f7a
      Mohamed Aziz Mejri 提交于
      <!-- This is an auto-generated description by cubic. -->
      ## Summary by cubic
      Keep the + button in chat enabled while a message is streaming, so users
      can attach files or toggle the token bar without waiting. Removed the
      disabled prop from AuxiliaryActionsMenu and stopped passing
      disabled={isStreaming} from ChatInput.
      
      <sup>Written for commit fbe88ac6e708be9e06c9d7a8afe08a913905bddf.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      5dee6f7a
    • Will Chen's avatar
      Speed up TS checks (#2111) · c08b2311
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > Improves TypeScript check performance and dev ergonomics.
      > 
      > - Switches `ts:main` from `tsc` to `tsgo` with `--incremental`; adds
      `--incremental` to `ts:workers`
      > - Adds `@typescript/native-preview` (and platform binaries) to dev
      deps/lockfile to support `tsgo`
      > - Moves lint-staged config from `package.json` to
      `lint-staged.config.js` and runs `npm run ts` on staged `*.ts,*.tsx`
      > - Updates TS configs to remove `baseUrl` and add catch‑all `paths`
      mapping (`"*": ["./*"]`) across `tsconfig*.json`
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      d25edc6782daf89b40d7c45c3ac25e6ad5bf5ee5. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      c08b2311
    • Will Chen's avatar
      format cla.yml (#2121) · b7d38b0f
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > <sup>[Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) is
      generating a summary for commit
      2f1690223730f1f6709afacf1ee302ee20d86a3e. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      b7d38b0f
  6. 08 1月, 2026 4 次提交
    • Mohamed Aziz Mejri's avatar
      Automatically read logs as tool-call (#2012) · 66421906
      Mohamed Aziz Mejri 提交于
      <!-- This is an auto-generated description by cubic. -->
      ---
      ## Summary by cubic
      Add a central log store and a new read_logs tool so the agent can fetch
      recent client, server, build-time, and network logs on demand, with a
      dyad-read-logs UI tag that shows progress and results in chat. This
      improves debugging by giving the agent a filtered snapshot of logs at
      the time of the call.
      
      - **New Features**
        - Central in-memory log store (per app, capped at 1000 entries).
      - PreviewIframe and runtime forward client, network, build-time, and
      server logs to the store via IPC; Supabase logs included.
      - New read_logs agent tool with filters: type, level, searchTerm, limit;
      returns a formatted snapshot and emits dyad-read-logs with results.
      - Added dyad-read-logs custom tag and DyadLogs component for collapsible
      output with pending/aborted indicators and result counts.
      - New IPC channels (add-log, clear-logs) whitelisted in preload, handled
      in main, and exposed via IpcClient.addLog and clearLogs.
        - E2E test for local agent validates filtered log reads.
      
      - **Bug Fixes**
      - Fixed missing forwarding of network-error logs from PreviewIframe to
      the central store.
      - Clear logs on app restart and deletion to prevent stale data and
      memory growth.
      
      <sup>Written for commit ab52f494158cea54f5e996349097abb597b1fd92.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      
      <!-- greptile_comment -->
      
      <h3>Greptile Summary</h3>
      
      
      - Implements centralized log store and `read_logs` agent tool enabling
      AI to fetch console logs on demand for debugging with comprehensive
      filtering options (time window, log type, level, source name, search
      terms)
      - Integrates log collection from client console, network events, and
      server stdout/stderr through IPC channels, forwarding logs to main
      process store with 1000-entry circular buffer per app
      - Adds `dyad-read-logs` UI component for collapsible log display in chat
      with proper state management and visual indicators for
      pending/aborted/completed states
      
      <h3>Important Files Changed</h3>
      
      
      | Filename | Overview |
      |----------|----------|
      | `src/components/preview_panel/PreviewIframe.tsx` | Forwards client
      console and network events to central log store; network-error events
      missing `IpcClient.addLog()` call |
      | `src/pro/main/ipc/handlers/local_agent/tools/read_logs.ts` | New
      read_logs tool with comprehensive filtering, smart stack trace
      truncation, and direct log store access |
      | `src/ipc/handlers/app_handlers.ts` | Added server stdout/stderr to log
      store and registered add-log IPC handler; entry parameter uses `any`
      type instead of `ConsoleEntry` |
      | `src/lib/log_store.ts` | New central in-memory log store with circular
      buffer; duplicate `ConsoleEntry` type definition exists |
      
      <h3>Confidence score: 4/5</h3>
      
      
      - This PR requires attention before merging due to incomplete log
      forwarding that could impact debugging effectiveness
      - Score reduced due to missing network-error log forwarding in
      `PreviewIframe.tsx` lines 414-428, type safety issue in
      `app_handlers.ts` using `any` instead of proper typing, and duplicate
      type definitions that need consolidation
      - Pay close attention to
      `src/components/preview_panel/PreviewIframe.tsx` network-error handler
      and `src/ipc/handlers/app_handlers.ts` type definitions
      
      <h3>Sequence Diagram</h3>
      
      ```mermaid
      sequenceDiagram
          participant User as User
          participant IFrame as PreviewIframe<br/>(Client)
          participant IPC as IpcClient
          participant Main as app_handlers<br/>(Main Process)
          participant LogStore as LogStore
          participant Agent as read_logs tool
          participant UI as DyadReadLogs<br/>(Chat Component)
      
          Note over User,UI: Log Collection Flow
          
          User->>IFrame: "Triggers network/console event"
          IFrame->>IFrame: "Handles event (console-log, network-request, etc.)"
          IFrame->>IPC: "addLog(logEntry)"
          IPC->>Main: 'invoke("add-log", entry)'
          Main->>LogStore: "addLog(entry)"
          LogStore->>LogStore: "Store in Map<appId, ConsoleEntry[]>"
          
          Note over User,UI: Server Log Collection
          Main->>Main: "Process stdout/stderr from app"
          Main->>LogStore: "addLog(serverLogEntry)"
          
          Note over User,UI: Agent Tool Flow
          User->>Agent: "Agent executes read_logs tool"
          Agent->>LogStore: "getLogs(appId)"
          LogStore-->>Agent: "ConsoleEntry[]"
          Agent->>Agent: "Filter by time/type/level/search"
          Agent->>Agent: "Format logs for AI consumption"
          Agent-->>UI: '<dyad-read-logs> XML tag'
          UI->>UI: "Render collapsible log viewer"
      ```
      
      <!-- greptile_other_comments_section -->
      
      **Context used:**
      
      - Context from `dashboard` - .cursor/rules/ipc.mdc
      ([source](https://app.greptile.com/review/custom-context?memory=92de190d-1eac-4167-a0e4-35db6533fe3d))
      - Context from `dashboard` - AGENTS.md
      ([source](https://app.greptile.com/review/custom-context?memory=32c86e9e-6a00-48f2-ac32-69590e8d298c))
      
      <!-- /greptile_comment -->
      
      <!-- CURSOR_SUMMARY -->
      ---
      
      > [!NOTE]
      > Adds an in-memory, per-app log store and wires all major sources into
      it, enabling the agent to fetch filtered log snapshots and render them
      in chat.
      > 
      > - New central store `lib/log_store.ts` with
      `addLog`/`getLogs`/`clearLogs` and `ConsoleEntry` moved to
      `ipc/ipc_types.ts`
      > - IPC: preload whitelists `add-log` and `clear-logs`; main handlers in
      `app_handlers.ts`; renderer API via `IpcClient.addLog`/`clearLogs`
      > - Log producers now forward to store:
      > - `PreviewIframe.tsx`: client console, network request/response/error,
      runtime errors; also keeps UI atom in sync
      > - `useRunApp.ts`: build-time and client-error logs; restart clears
      logs via IPC
      >   - `app_handlers.ts`: server stdout/stderr appended to store
      >   - `useSupabase.ts`: edge function logs appended to store
      > - New agent tool `read_logs` (`pro/main/.../tools/read_logs.ts`) with
      filters (`type`, `level`, `searchTerm`, `limit`), formats results, and
      emits `<dyad-read-logs>` with counts
      > - Chat UI: `DyadLogs` component and parser updates to render
      collapsible results (`dyad-read-logs`)
      > - E2E: fixture and spec validate filtered log reads in local-agent
      mode
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      d77e209c269ad2de80e2c57ed0c8824a288244a2. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      66421906
    • Will Chen's avatar
      Refine home page experience (#2110) · 9a606404
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > Refines the home experience and Pro visibility/CTA while updating
      related copy and tests.
      > 
      > - Changes hero title to `Build a new app` in `SetupBanner` and updates
      e2e expectations (`e2e-tests/*.spec.ts`)
      > - Adds fixed Dyad Pro CTA on `home.tsx` top-right: shows
      `ManageDyadProButton` when `hasDyadProKey(settings)` else
      `SetupDyadProButton`
      > - Makes `ImportAppButton` accept an optional `className`; updates
      layout usage on home
      > - Simplifies `ProBanner`: now hidden when `hasDyadProKey(settings)`;
      refreshed icons/labels for `ManageDyadProButton`
      > - Updates Smart Context savings copy to “up to 3x” in `ProBanner` and
      `chat/PromoMessage`
      > - Adjusts provider config: Dyad `websiteUrl` now `/subscription`;
      removes Dyad-specific override in `ProviderSettingsPage`
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      3abffd759951f473f9ba0949fdc4f72f49ff5ca3. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ## Summary by cubic
      Refined the home page with a new hero title and a fixed Dyad Pro button,
      plus cleaner Pro/Smart Context messaging and styling.
      
      - **New Features**
      - Added a fixed top-right Dyad Pro CTA on home: shows Manage when a Dyad
      Pro key is present, otherwise Setup.
      - ImportAppButton now accepts className for flexible layout; updated
      usage on home.
      
      - **Refactors**
      - Simplified ProBanner: hides when userBudget exists; moved the Pro CTA
      to home; refreshed icons and label.
      - Updated Smart Context savings copy to “up to 3x” (was 5x), including
      chat promo.
      - Dyad provider URL now points to /subscription; removed Dyad-specific
      override in ProviderSettingsPage.
        - Updated e2e tests to expect “Build a new app” headline.
      
      <sup>Written for commit 5eee69fc80ee021e6a4684213e04206e1fed76c6.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      9a606404
    • Will Chen's avatar
      Introduce CLA and PR check (#2112) · f718b968
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > Introduces contributor licensing and automated CLA enforcement.
      > 
      > - Adds `CLA.md` (individual agreement) and documents FSL licensing for
      `src/pro` (`CONTRIBUTING.md`, `src/pro/CONTRIBUTING.md`)
      > - New GitHub Actions workflow `/.github/workflows/cla.yml` using
      `contributor-assistant/github-action@v2.6.1` on `pull_request_target`
      and `issue_comment`
      > - Stores signatures at `signatures/version1/cla.json` on branch `cla`
      and updates PR status; supports signing via comment or `recheck`
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      5706a5ace13aabd8e8e83fdd071d65f7fc40500f. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ---
      ## Summary by cubic
      Add a Contributor License Agreement and a GitHub Action that blocks PRs
      until all authors sign the CLA. Also clarifies that contributions in
      src/pro are licensed under FSL.
      
      - **New Features**
        - Added CLA.md for individual contributors.
      - Enabled CLA Assistant on pull_request_target and issue_comment events.
      - Stores signatures at signatures/version1/cla.json on the cla branch
      and updates PR status.
        - Supports “recheck” and signing via comment.
        - Documented FSL licensing for src/pro contributions.
      
      - **Migration**
      - Ensure the cla branch is not protected, or change the action’s target
      branch.
        - Optionally configure an allowlist to fit your org.
      - If storing signatures remotely, add the PERSONAL_ACCESS_TOKEN secret.
      - Contributors sign by commenting: “I have read the CLA Document and I
      hereby sign the CLA”.
      
      <sup>Written for commit 5706a5ace13aabd8e8e83fdd071d65f7fc40500f.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      f718b968
    • Will Chen's avatar
      Update GLM 4.6 to 4.7 (#2108) · f49fbd42
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > Updates the turbo GLM entry to the newer version and tweaks its
      generation settings.
      > 
      > - Replace `glm-4.6:turbo` with `glm-4.7:turbo` in `TURBO_MODELS` and
      update `displayName`
      > - Increase `temperature` for GLM turbo from `0` to `0.7`
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      c6aabf935bebf642548d4583d1842f89a6214601. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ## Summary by cubic
      Replace GLM 4.6 turbo with GLM 4.7 turbo and raise the default
      temperature to 0.7. Token limits and context window are unchanged.
      
      <sup>Written for commit c6aabf935bebf642548d4583d1842f89a6214601.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      f49fbd42
  7. 07 1月, 2026 1 次提交
    • Will Chen's avatar
      Upgrade to AI SDK v6 (#2102) · 54b7a22d
      Will Chen 提交于
      <!-- CURSOR_SUMMARY -->
      > [!NOTE]
      > Modernizes AI integration across the app.
      > 
      > - Upgrade `ai` to v6 and all `@ai-sdk/*` providers to v3/v4; add
      `@ai-sdk/mcp`, remove `@openrouter/ai-sdk-provider`
      > - Migrate from `LanguageModelV2` to `LanguageModel`/`LanguageModelV3`;
      refactor fallback model to v3 streaming API
      > - Switch OpenRouter to `createOpenAICompatible`
      (`https://openrouter.ai/api/v1`)
      > - Replace experimental MCP with `@ai-sdk/mcp` (`createMCPClient`);
      update tool execution to `ToolExecutionOptions` and sanitize tool keys
      > - Update AI message envelope to `ai@v6` and types
      (`AiMessagesJsonV6`); adjust DB schema and parsing utilities
      > - Update chat/local-agent handlers to v6 stream parts (reasoning/tool
      parts), persist `aiMessagesJson`, and wire MCP tools into `ToolSet`
      > 
      > <sup>Written by [Cursor
      Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
      fc966595cbd9c6ff7d261497f00bfe79d0fff9e3. This will update automatically
      on new commits. Configure
      [here](https://cursor.com/dashboard?tab=bugbot).</sup>
      <!-- /CURSOR_SUMMARY -->
      
      <!-- This is an auto-generated description by cubic. -->
      ---
      ## Summary by cubic
      Upgrade the app to AI SDK v6 to modernize model integrations, MCP
      tooling, and streaming. This improves stability, unifies types on v3,
      and removes the OpenRouter provider in favor of an OpenAI-compatible
      setup.
      
      - **Dependencies**
        - Upgraded ai to 6.0.14 and all @ai-sdk providers to v3/v4.
        - Added @ai-sdk/mcp; removed @openrouter/ai-sdk-provider.
        - Pinned @ai-sdk/provider to 3.0.2.
      - Updated transitive deps (e.g., google-auth-library, gaxios) for Node
      >=18.
      
      - **Refactors**
      - Moved from LanguageModelV2 to v3 and standardized on ai’s
      LanguageModel.
        - Rebuilt fallback model to v3 spec with safer stream retries.
      - Switched MCP client to createMCPClient and updated tool execution to
      ToolExecutionOptions.
      - Replaced OpenRouter integration with createOpenAICompatible (baseURL
      https://openrouter.ai/api/v1).
      - Updated AI messages envelope to "ai@v6"; older "ai@v5" envelopes are
      ignored.
      
      <sup>Written for commit fc966595cbd9c6ff7d261497f00bfe79d0fff9e3.
      Summary will update on new commits.</sup>
      
      <!-- End of auto-generated description by cubic. -->
      54b7a22d