





















@@ -48,9 +48,9 @@ describe("sessionsCommand", () => {
4848expect(logs.some((line) => line.includes("Tokens (ctx %"))).toBe(true);
49495050const row = logs.find((line) => line.includes("+15555550123")) ?? "";
51-expect(row).toContain("2.0k/32k (6%)");
52-expect(row).toContain("45m ago");
53-expect(row).toContain("pi:opus");
51+expect(row).toBe(
52+ "direct +15555550123 45m ago pi:opus OpenAI Codex 2.0k/32k (6%) id:abc123",
53+);
5454});
55555656it("renders the agent runtime in the tabular view", async () => {
@@ -138,9 +138,9 @@ describe("sessionsCommand", () => {
138138fs.rmSync(store);
139139140140const row = logs.find((line) => line.includes("quietchat:group:demo")) ?? "";
141-expect(row).toContain("unknown/32k (?%)");
142-expect(row).toContain("think:high");
143-expect(row).toContain("5m ago");
141+expect(row).toBe(
142+ "group quietchat:group:demo 5m ago pi:opus OpenAI Codex unknown/32k (?%) think:high id:xyz",
143+);
144144});
145145146146it("exports freshness metadata in JSON output", async () => {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。