Skip to content

The open source coding agent.

TypeScript

fix: disable virtual extmarks for file/agent mentions (#4731)

Tommy D. Rossi673dbeee09d3
diff --git a/packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx b/packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx
index 8371c395fbe..5780be4e987 100644
--- a/packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx
+++ b/packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx
@@ -81,7 +81,6 @@ export function Autocomplete(props: {
const extmarkId = input.extmarks.create({
start: extmarkStart,
end: extmarkEnd,
- virtual: true,
styleId,
typeId: props.promptPartTypeId(),
})
diff --git a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
index 43aeef2137c..fdf5b5b52af 100644
--- a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
+++ b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
@@ -310,7 +310,6 @@ export function Prompt(props: PromptProps) {
const extmarkId = input.extmarks.create({
start,
end,
- virtual: true,
styleId,
typeId: promptPartTypeId,
})