• Will Chen's avatar
    Smart Context: deep (#1527) · 06ad1a75
    Will Chen 提交于
    <!-- CURSOR_SUMMARY -->
    > [!NOTE]
    > Introduce a new "deep" Smart Context mode that supplies versioned
    files (by commit) to the engine, adds code search rendering, stores
    source commit hashes, improves search-replace recovery, and updates
    UI/tests.
    > 
    > - **Smart Context (deep)**:
    > - Replace `conservative` with `deep`; limit context to ~200 turns;
    send `sourceCommitHash` per message.
    > - Build and pass `versioned_files` (hash-id map + per-message file
    refs) and `app_id` to engine.
    > - **DB**:
    >   - Add `messages.source_commit_hash` (+ migration/snapshot).
    > - **Engine/Processing**:
    > - Retry Turbo Edits v2: first re-read then fallback to `dyad-write` if
    search-replace fails.
    > - Include provider options and versioned files in requests; add
    `getCurrentCommitHash`/`getFileAtCommit`.
    > - **UI**:
    >   - Pro mode selector: new `deep` option; tooltips polish.
    > - Add `DyadCodeSearch` and `DyadCodeSearchResult` components; parser
    supports new tags.
    > - **Tests/E2E**:
    > - New `smart_context_deep` e2e; update snapshots to include `app_id`
    and deep mode; adjust Playwright timeout.
    >   - Unit tests for versioned codebase context.
    > 
    > <sup>Written by [Cursor
    Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
    e3d3bffabb2bc6caf52103461f9d6f2d5ad39df8. This will update automatically
    on new commits. Configure
    [here](https://cursor.com/dashboard?tab=bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    06ad1a75
名称
最后提交
最后更新
..
AttachmentsList.tsx 正在载入提交数据...
ChatActivity.tsx 正在载入提交数据...
ChatError.tsx 正在载入提交数据...
ChatErrorBox.tsx 正在载入提交数据...
ChatHeader.tsx 正在载入提交数据...
ChatInput.tsx 正在载入提交数据...
ChatMessage.tsx 正在载入提交数据...
CodeHighlight.tsx 正在载入提交数据...
DeleteChatDialog.tsx 正在载入提交数据...
DragDropOverlay.tsx 正在载入提交数据...
DyadAddDependency.tsx 正在载入提交数据...
DyadAddIntegration.tsx 正在载入提交数据...
DyadCodeSearch.tsx 正在载入提交数据...
DyadCodeSearchResult.tsx 正在载入提交数据...
DyadCodebaseContext.tsx 正在载入提交数据...
DyadDelete.tsx 正在载入提交数据...
DyadEdit.tsx 正在载入提交数据...
DyadExecuteSql.tsx 正在载入提交数据...
DyadMarkdownParser.tsx 正在载入提交数据...
DyadMcpToolCall.tsx 正在载入提交数据...
DyadMcpToolResult.tsx 正在载入提交数据...
DyadOutput.tsx 正在载入提交数据...
DyadProblemSummary.tsx 正在载入提交数据...
DyadRead.tsx 正在载入提交数据...
DyadRename.tsx 正在载入提交数据...
DyadSearchReplace.tsx 正在载入提交数据...
DyadThink.tsx 正在载入提交数据...
DyadTokenSavings.tsx 正在载入提交数据...
DyadWebCrawl.tsx 正在载入提交数据...
DyadWebSearch.tsx 正在载入提交数据...
DyadWebSearchResult.tsx 正在载入提交数据...
DyadWrite.tsx 正在载入提交数据...
FileAttachmentDropdown.tsx 正在载入提交数据...
HomeChatInput.tsx 正在载入提交数据...
LexicalChatInput.tsx 正在载入提交数据...
MessagesList.tsx 正在载入提交数据...
PromoMessage.tsx 正在载入提交数据...
RenameChatDialog.tsx 正在载入提交数据...
SelectedComponentDisplay.tsx 正在载入提交数据...
TokenBar.tsx 正在载入提交数据...
VersionPane.tsx 正在载入提交数据...
monaco.ts 正在载入提交数据...
stateTypes.ts 正在载入提交数据...
types.d.ts 正在载入提交数据...