1. 01 5月, 2026 1 次提交
    • keppo-bot[bot]'s avatar
      Deflake CI E2E failures (#3311) · 971aca34
      keppo-bot[bot] 提交于
      ## Summary
      - Deflake CI E2E failures from
      https://github.com/dyad-sh/dyad/actions/runs/25126503338.
      - Await streamed token-usage persistence before token-count invalidation
      so the context-limit banner sees the real max token usage.
      - Harden E2E helpers around GitHub sync completion, already-applied
      proposals, queued Lexical submissions, visual-save button re-renders,
      and Windows line endings.
      - Update the component-tagger upgrade snapshot from 0.8.0 to 0.9.0.
      
      ## Root Cause
      The failing run had several independent races and one stale snapshot:
      - The context-limit banner could refetch token counts before the
      assistant message's max token usage had been saved, leaving
      actualMaxTokens null after a high-token stream.
      - GitHub assertions snapshotted the connected-repo panel while the sync
      button was still in its transient Syncing state.
      - Some E2E helpers used one-shot Lexical fills/clicks where Playwright
      can act during React or DOM replacement windows.
      - The code-editor assertion compared raw file contents, which fails on
      Windows CRLF output.
      - The select-component upgrade snapshot still expected the older
      component tagger version.
      
      ## Why This Fix Is Correct
      - Awaiting the existing max-token update makes the later chat/token
      invalidations observe the persisted usage instead of racing it.
      - GitHub sync waits now use the stable connected-repo panel state:
      Syncing hidden, Sync to GitHub enabled, and the panel-local success text
      visible.
      - Queued-message and visual-save actions now retry the exact UI contract
      the tests require: the queued row appears or the save button is visible,
      enabled, and clickable.
      - The editor test normalizes only line endings, preserving the
      file-content assertion while making it platform-independent.
      
      ## Test Plan
      - npm run fmt && npm run lint:fix && npm run ts
      - PYTHON=/usr/bin/python3 npm run build
      - PLAYWRIGHT_HTML_OPEN=never npm run e2e --
      e2e-tests/select_component.spec.ts --update-snapshots
      - PLAYWRIGHT_HTML_OPEN=never npm run e2e --
      e2e-tests/context_limit_banner.spec.ts e2e-tests/debugging_logs.spec.ts
      e2e-tests/edit_code.spec.ts e2e-tests/github.spec.ts
      e2e-tests/queued_message.spec.ts e2e-tests/visual_editing.spec.ts
      - First run: 21 passed, 6 GitHub helper strict-mode failures due
      duplicate success toast text.
      - PLAYWRIGHT_HTML_OPEN=never npm run e2e -- e2e-tests/github.spec.ts
      - npm test
      
      🤖 Generated with [Claude Code](https://claude.com/claude-code)
      
      <!-- devin-review-badge-begin -->
      
      ---
      
      <a href="https://app.devin.ai/review/dyad-sh/dyad/pull/3311"
      target="_blank">
        <picture>
      <source media="(prefers-color-scheme: dark)"
      srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
      <img
      src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
      alt="Open in Devin Review">
        </picture>
      </a>
      <!-- devin-review-badge-end -->
      
      ---------
      Co-authored-by: 's avatarWill Chen <7344640+wwwillchen@users.noreply.github.com>
      971aca34
  2. 30 4月, 2026 2 次提交
  3. 29 4月, 2026 9 次提交
  4. 28 4月, 2026 5 次提交
  5. 27 4月, 2026 2 次提交
  6. 24 4月, 2026 1 次提交
  7. 23 4月, 2026 12 次提交
  8. 22 4月, 2026 2 次提交
  9. 21 4月, 2026 5 次提交
  10. 19 4月, 2026 1 次提交
    • Mohamed Aziz Mejri's avatar
      Neon integration (#3178) · 661e1438
      Mohamed Aziz Mejri 提交于
      ### Context for review bots :
      
      1.The agent can execute sql commands directly on production , this is
      fine because they user may choose to start with a simple setup first and
      use the production database directly (in a follow up PR we should give
      the users the ability to sync dev branch to match production branch).The
      user also has the possiblity to revert database changes .
      2.Right now there’s no warning for destructive changes before migration
      , this is fine for now as we're gonna add a follow up PR for this
      3.When linking an existing neon project that doesnt have a developement
      database , we're setting the default branch as the active branch . This
      is fine because the user may prefer to start a simple setup at the
      beginning and work directly on the production database , in addition
      since the project was created outside dyad it may have a developement
      branch named differently so it wouldnt be wise to auto create one here .
      However, in a follow up PR we should allow the user to manually create
      branches and sync dev branch to match production .
      4.neon is only available for next.js now
      5.We dont have enough tests for now, i am gonna add a follow-up PR to
      cover this
      <!-- devin-review-badge-begin -->
      
      ---
      
      <a href="https://app.devin.ai/review/dyad-sh/dyad/pull/3178"
      target="_blank">
        <picture>
      <source media="(prefers-color-scheme: dark)"
      srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
      <img
      src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
      alt="Open with Devin">
        </picture>
      </a>
      <!-- devin-review-badge-end -->
      
      ---------
      Co-authored-by: 's avatarClaude Opus 4.6 (1M context) <noreply@anthropic.com>
      661e1438