From 58a66700c6536ee210de5f835b57ead23b5b3dc7 Mon Sep 17 00:00:00 2001 From: Pierre De Lancre Date: Sun, 20 Sep 2026 13:54:15 +0300 Subject: [PATCH] harness: pin bridge conversation to local-conv-487 (CONVERSATION_ID constant, --agent omitted for pinned convs) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code --- src/letta.zig | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/letta.zig b/src/letta.zig index 52dc264..940a0eb 100644 --- a/src/letta.zig +++ b/src/letta.zig @@ -3,6 +3,11 @@ const Io = std.Io; const LETTA_PATH = "/home/pierre/.bun/bin/letta"; +/// Conversation the matrix bridge routes messages into. Pinned to a specific +/// conversation ID (not "default") so a tainted/default conversation can be +/// swapped without touching the bridge. +pub const CONVERSATION_ID = "local-conv-487"; + /// Runs `letta -n -p `, captures everything it writes to /// stdout, and returns it as an owned slice (caller frees it). pub fn infer( @@ -11,8 +16,10 @@ pub fn infer( agent: []const u8, prompt: []const u8, ) ![]u8 { + _ = agent; // unused: pinned conversation implies the agent on the CLI side var child = try std.process.spawn(io, .{ - .argv = &.{ LETTA_PATH, "--agent", agent, "-p", prompt, "--conversation", "default", "--toolset", "default" }, + // Pinned conversation: --agent must be omitted for non-default conversations. + .argv = &.{ LETTA_PATH, "-p", prompt, "--conversation", CONVERSATION_ID, "--toolset", "default" }, .stdout = .pipe, .stderr = .inherit, // letta's error output goes straight to your terminal });