Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(acp): keep model discovery and selection on the same option #19567

MergedStiensWout(GitHub profile, opens in a new tab)merged 6 commits intomain fromrefs/pull/19567/headmerged by juliusmarminge View on GitHub

Showing 8 changed files with 23 additions and 25 deletions (loading 7).

x
0 of 8 viewed, 8 left
23 additions and 25 deletionsapps/server/scripts/acp-replay-agent.tsModified
View file
@@ -138,11 +138,6 @@
process.stdin.pause();
​
-function advance(): void {
- cursor += 1;
- writeStatus();
-}
-​
function send(message: JsonRpcMessage): void {
process.stdout.write(`${JSON.stringify(message)}\n`);
@@ -182,56 +177,57 @@
​
-function emitInbound(recorded: LogicalFrame): void {
+function inboundMessage(recorded: LogicalFrame): JsonRpcMessage | undefined {
const frame = materializeInbound(recorded) as LogicalFrame;
switch (frame.kind) {
case "notification":
- send({
+ return {
jsonrpc: "2.0",
method: frame.method,
...(frame.params === undefined ? {} : { params: frame.params }),
- });
- return;
+ };