refactor: remove session syncing metadata
This commit is contained in:
@@ -12,7 +12,6 @@ const mocks = vi.hoisted(() => ({
|
||||
model: "pi:opus",
|
||||
sessionId: "abc123",
|
||||
systemSent: true,
|
||||
syncing: true,
|
||||
},
|
||||
}),
|
||||
resolveStorePath: vi.fn().mockReturnValue("/tmp/sessions.json"),
|
||||
@@ -56,7 +55,6 @@ describe("statusCommand", () => {
|
||||
expect(payload.sessions.recent[0].percentUsed).toBe(50);
|
||||
expect(payload.sessions.recent[0].remainingTokens).toBe(5000);
|
||||
expect(payload.sessions.recent[0].flags).toContain("verbose:on");
|
||||
expect(payload.sessions.recent[0].flags).toContain("syncing");
|
||||
});
|
||||
|
||||
it("prints formatted lines otherwise", async () => {
|
||||
|
||||
@@ -29,7 +29,6 @@ export type SessionStatus = {
|
||||
verboseLevel?: string;
|
||||
systemSent?: boolean;
|
||||
abortedLastRun?: boolean;
|
||||
syncing?: boolean | string;
|
||||
inputTokens?: number;
|
||||
outputTokens?: number;
|
||||
totalTokens: number | null;
|
||||
@@ -101,7 +100,6 @@ export async function getStatusSummary(): Promise<StatusSummary> {
|
||||
verboseLevel: entry?.verboseLevel,
|
||||
systemSent: entry?.systemSent,
|
||||
abortedLastRun: entry?.abortedLastRun,
|
||||
syncing: entry?.syncing,
|
||||
inputTokens: entry?.inputTokens,
|
||||
outputTokens: entry?.outputTokens,
|
||||
totalTokens: total ?? null,
|
||||
@@ -178,10 +176,6 @@ const buildFlags = (entry: SessionEntry): string[] => {
|
||||
flags.push(`verbose:${verbose}`);
|
||||
if (entry?.systemSent) flags.push("system");
|
||||
if (entry?.abortedLastRun) flags.push("aborted");
|
||||
const syncing = entry?.syncing as unknown;
|
||||
if (syncing === true || syncing === "on") flags.push("syncing");
|
||||
else if (typeof syncing === "string" && syncing)
|
||||
flags.push(`sync:${syncing}`);
|
||||
const sessionId = entry?.sessionId as unknown;
|
||||
if (typeof sessionId === "string" && sessionId.length > 0)
|
||||
flags.push(`id:${sessionId}`);
|
||||
|
||||
Reference in New Issue
Block a user