Skip to content

Lightpanda: the headless browser designed for AI and automation

terminal: hint first slash command on single slash

Adrià Arrufat59fb13892e8b
diff --git a/src/agent/Terminal.zig b/src/agent/Terminal.zig
index 69ec9835b..c7341412d 100644
--- a/src/agent/Terminal.zig
+++ b/src/agent/Terminal.zig
@@ -545,6 +545,8 @@ fn hintsCallback(input_c: [*c]const u8, arg: ?*anyopaque) callconv(.c) [*c]const
// Inside an open `'''…'''` body the buffer is script text, not kv args.
if (Schema.hasUnclosedTripleQuote(input)) return null;
+ if (std.mem.eql(u8, input, "/")) return ghostFirstMatch(&all_slash_names, "", "");
+
if (Schema.parseSlashCommand(input)) |parts| {
const ends_ws = input[input.len - 1] == ' ';
if (Schema.findByName(parts.name)) |schema| {