Skip to content

Commit d45db9d

Browse files
E2E updates
1 parent 6c71ef2 commit d45db9d

File tree

4 files changed

+494
-103
lines changed

4 files changed

+494
-103
lines changed

dotnet/test/AgentAndCompactRpcTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public async Task Should_Deselect_Current_Agent()
120120
[Fact]
121121
public async Task Should_Return_Empty_List_When_No_Custom_Agents_Configured()
122122
{
123-
var session = await Client.CreateSessionAsync();
123+
var session = await CreateSessionAsync();
124124

125125
var result = await session.Rpc.Agent.ListAsync();
126126
Assert.Empty(result.Agents);
@@ -129,7 +129,7 @@ public async Task Should_Return_Empty_List_When_No_Custom_Agents_Configured()
129129
[Fact]
130130
public async Task Should_Compact_Session_History_After_Messages()
131131
{
132-
var session = await Client.CreateSessionAsync();
132+
var session = await CreateSessionAsync();
133133

134134
// Send a message to create some history
135135
await session.SendAndWaitAsync(new MessageOptions { Prompt = "What is 2+2?" });

nodejs/test/e2e/compaction.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe("Compaction", async () => {
2626
// Send multiple messages to fill up the context window
2727
// With such low thresholds, even a few messages should trigger compaction
2828
await session.sendAndWait({
29-
prompt: "Tell me a long story about a dragon. Be very detailed.",
29+
prompt: "Tell me a story about a dragon. Be detailed.",
3030
});
3131
await session.sendAndWait({
3232
prompt: "Continue the story with more details about the dragon's castle.",

test/harness/replayingCapiProxy.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,10 @@ function normalizeUserMessage(content: string): string {
632632
return content
633633
.replace(/<current_datetime>.*?<\/current_datetime>/g, "")
634634
.replace(/<reminder>[\s\S]*?<\/reminder>/g, "")
635-
.replace(/Please create a detailed summary of the conversation so far\. The history is being compacted[\s\S]*/, "${compaction_prompt}")
635+
.replace(
636+
/Please create a detailed summary of the conversation so far\. The history is being compacted[\s\S]*/,
637+
"${compaction_prompt}",
638+
)
636639
.trim();
637640
}
638641

0 commit comments

Comments
 (0)