• Will Chen's avatar
    Improve system prompt instructions for local agents (#2628) · 3b056977
    Will Chen 提交于
    #skip-bb
    <!-- devin-review-badge-begin -->
    
    ---
    
    <a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2628"
    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 -->
    
    <!-- This is an auto-generated description by cubic. -->
    ---
    ## Summary by cubic
    Improved the local agent system prompt for clarity, safety, and
    consistency across Pro/Basic/Ask modes. Added prompt snapshot tests and
    stabilized Playwright snapshots by masking system messages in both input
    and message dumps.
    
    - **Refactors**
    - Shared COMMON_GUIDELINES across all modes; strengthened security
    guidance; added concise-explanations and Help-button guidance.
    - Added Vitest snapshot tests for agent/basic/ask prompts and the e2e:p3
    script (parallelism=3, retries=1).
    
    - **Bug Fixes**
    - Masked system messages in body.input and body.messages for all dump
    types to make Playwright snapshots deterministic; updated affected
    snapshots.
    
    <sup>Written for commit 162030ad2a8c1db3e3905b7d6ac30b518d05dbda.
    Summary will update on new commits.</sup>
    
    <!-- End of auto-generated description by cubic. -->
    3b056977
context_compaction.spec.ts_local-agent---context-compaction-triggers-and-shows-summary-1.txt 770 Bytes