Skip to content

Commit 2a81a04

Browse files
gHashTagclaude
andcommitted
fix: Add /chat command handler to trinity_cli
- Added missing /chat command that was shown in help but not implemented - /chat → Mode: Conversational Chat - привет → "Привет! Я Trinity — локальный AI-ассистент..." - hello → "Hello! I'm Trinity — a 100% local AI assistant..." - 你好 → "你好!我是Trinity — 本地AI助手..." 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ff5d036 commit 2a81a04

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/vibeec/trinity_cli.zig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ fn printPrompt(state: *CLIState) void {
9090
}
9191

9292
fn processCommand(state: *CLIState, cmd: []const u8) void {
93-
if (std.mem.eql(u8, cmd, "/code")) {
93+
if (std.mem.eql(u8, cmd, "/chat")) {
94+
state.mode = .Chat;
95+
std.debug.print("{s}Mode: Conversational Chat{s}\n", .{ GREEN, RESET });
96+
} else if (std.mem.eql(u8, cmd, "/code")) {
9497
state.mode = .CodeGen;
9598
std.debug.print("{s}Mode: Code Generation{s}\n", .{ GREEN, RESET });
9699
} else if (std.mem.eql(u8, cmd, "/reason")) {

0 commit comments

Comments
 (0)