Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/druks/chat/bridge.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class Conversation {
if (!bearer) throw new Error("The Druks MCP placeholder is missing.");
const setup = {
cwd: this.root,
mcpServers: [{ name: "druks", type: "http", url: request.mcpUrl, headers: [{ name: "Authorization", value: "Bearer " + bearer }, ...request.headers] }],
mcpServers: [{ name: "druks", type: "http", url: request.mcpUrl, headers: [{ name: "Authorization", value: bearer }, ...request.headers] }],
_meta: request.meta,
};
const session = this.state.sessionId
Expand Down
2 changes: 1 addition & 1 deletion backend/tests/chat/bridge.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ test("The bridge streams detached turns, isolates archives, cancels, and reloads
"initialize: async () => ({protocolVersion: PROTOCOL_VERSION, agentCapabilities: {loadSession: true}}),",
"newSession: async p => { cwd=p.cwd; sessionId=randomUUID();",
" if (p._meta.harness !== 'options') throw Error('meta');",
" if (p.mcpServers[0].headers[0].value !== 'Bearer placeholder') throw Error('token');",
" if (p.mcpServers[0].headers[0].value !== 'placeholder') throw Error('token');",
" fs.writeFileSync(path.join(cwd, 'setup.json'), JSON.stringify(p.mcpServers[0].headers));",
" return {sessionId, configOptions: [{id: 'model'}, {id: 'effort'}, {id: 'fast'}]}; },",
"loadSession: async p => { cwd=p.cwd; sessionId=p.sessionId; memory=fs.readFileSync(transcript(), 'utf8');",
Expand Down
Loading