opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Slash commands are bein incorrectly captured

Open bcardarella opened this issue 1 week ago • 0 comments

Description

I have the following from manually running grep:

/Users/bcardarella/projects/crane/src/runtime/engines/v8/ffi.zig:2477:pub extern fn v8_CreateLegacyPlatformObjectProxy(context: *Context, target: *Object) ?*Object;
/Users/bcardarella/projects/crane/src/runtime/engines/v8/template_registry.zig:405:        break :blk lpo_proxy.wrapInProxy(v8_object, isolate, context);
/Users/bcardarella/projects/crane/src/runtime/engines/v8/legacy_platform_object_proxy.zig:3:pub fn wrapInProxy(target: *v8.Object, isolate: *v8.Isolate, context: *v8.Context) *v8.Object {
/Users/bcardarella/projects/crane/src/runtime/engines/v8/legacy_platform_object_proxy.zig:5:    return v8.v8_CreateLegacyPlatformObjectProxy(context, target) orelse target;
/Users/bcardarella/projects/crane/src/runtime/engines/v8/v8_wrapper.cpp:7084:Global<Object>* v8_CreateLegacyPlatformObjectProxy(Global<Context>* context, Global<Object>* target) {

Opencode sees: /Users... and will believe this is a slash command:

<auto-slash-command>
[AUTO-SLASH-COMMAND ERROR]
Command "/users" not found. Use the slashcommand tool to list available commands.
Original input: /Users/bcardarella/projects/crane/src/runtime/engines/v8/ffi.zig:2477:pub extern fn v8_CreateLegacyPlatformObjectProxy(context: *Context, target: *Object) ?*Object;
</auto-slash-command>

Even when I try to prepend something like:

Output:

[pasted output]

I still get the same result

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

bcardarella avatar Jan 05 '26 22:01 bcardarella