fix(tui): stabilize Zed editor context polling (#24656)

This commit is contained in:
Kit Langton
2026-04-27 15:37:18 -04:00
committed by GitHub
parent c361c2953f
commit 5290e9ca7e
4 changed files with 128 additions and 21 deletions

View File

@@ -764,6 +764,12 @@ export function Prompt(props: PromptProps) {
return `Note: The user selected lines ${start.line} to ${end.line} from "${editorSelection.filePath}": ${editorSelection.text}`
})(),
synthetic: true,
metadata: {
kind: "editor_context",
source: editorSelection.source ?? "editor",
filePath: editorSelection.filePath,
selection: editorSelection.selection,
},
},
]
: []