sessions: omp's local sessions are in Usage › Sessions (#303), and the GLM Coding Plans take Codex's Responses as they are (#306) — omp (oh-my-pi) keeps Pi's session jsonl (v3) under ~/.omp/agent/sessions (and profiles' and $XDG_DATA_HOME/omp's) with a title line, title changes, model_usage for calls outside the chat, provider/model changes and subagent/advisor transcripts beside the file; they are read through Pi's parser, subagents counted in their session, a fork's copied entries in the original only, resumed by omp --resume <id>. The zhipu and zai Coding Plan regions get their Responses base (open.bigmodel.cn/api/v1, api.z.ai/api/v1, per their Codex docs), so Codex's requests go there as they are instead of rebuilt for Chat; Chat and Claude Code routes are unchanged. TestOmp, TestDirsMore and TestGLMCodingPlanResponses fail without the change. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass.
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
{"type":"title","v":1,"title":"Port the parser to omp","source":"auto","updatedAt":"2026-09-28T08:01:10.000Z","pad":" "}
|
||||
{"type":"session","version":3,"id":"019a0000-0000-7000-8000-00000000000a","title":"Port the parser","titleSource":"auto","timestamp":"2026-09-28T08:00:00.000Z","cwd":"/work/omp"}
|
||||
{"type":"model_change","id":"a0000001","parentId":null,"timestamp":"2026-09-28T08:00:00.100Z","model":"anthropic/claude-opus-5-5","role":"default"}
|
||||
{"type":"thinking_level_change","id":"a0000002","parentId":"a0000001","timestamp":"2026-09-28T08:00:00.100Z","thinkingLevel":"high"}
|
||||
{"type":"message","id":"a0000003","parentId":"a0000002","timestamp":"2026-09-28T08:00:01.000Z","message":{"role":"user","content":[{"type":"text","text":"Port the parser"}],"attribution":"user","timestamp":1790582401000}}
|
||||
{"type":"message","id":"a0000004","parentId":"a0000003","timestamp":"2026-09-28T08:00:05.000Z","message":{"role":"assistant","content":[{"type":"text","text":"ok"}],"api":"anthropic-messages","provider":"anthropic","model":"claude-opus-5-5","usage":{"input":100,"output":50,"cacheRead":1000,"cacheWrite":200,"totalTokens":1350,"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0,"total":0}},"stopReason":"toolUse","timestamp":1790582405000}}
|
||||
{"type":"model_usage","id":"a0000005","parentId":"a0000004","timestamp":"2026-09-28T08:00:06.000Z","purpose":"title","role":"smol","api":"anthropic-messages","provider":"anthropic","model":"claude-haiku-5","usage":{"input":20,"output":5,"cacheRead":0,"cacheWrite":0,"totalTokens":25,"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0,"total":0}},"stopReason":"stop"}
|
||||
{"type":"message","id":"a0000006","parentId":"a0000004","timestamp":"2026-09-28T08:00:50.000Z","message":{"role":"toolResult","toolCallId":"toolu_1","toolName":"task","content":[{"type":"text","text":"done"}],"details":{"usage":{"input":340,"output":34,"cacheRead":100,"cacheWrite":0,"totalTokens":474,"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0,"total":0}}},"isError":false,"timestamp":1790582450000}}
|
||||
{"type":"message","id":"a0000007","parentId":"a0000006","timestamp":"2026-09-28T08:01:00.000Z","message":{"role":"assistant","content":[{"type":"text","text":"ok"}],"api":"anthropic-messages","provider":"anthropic","model":"claude-opus-5-5","usage":{"input":10,"output":5,"cacheRead":500,"cacheWrite":0,"totalTokens":515,"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0,"total":0}},"stopReason":"stop","timestamp":1790582460000}}
|
||||
{"type":"title_change","id":"a0000008","parentId":"a0000007","timestamp":"2026-09-28T08:01:10.000Z","title":"Port the parser to omp","previousTitle":"Port the parser","source":"auto","trigger":"auto"}
|
||||
{"type":"compaction","id":"a0000009","parentId":"a0000008","timestamp":"2026-09-28T08:02:00.000Z","summary":"Ported.","firstKeptEntryId":"a0000007","tokensBefore":1800}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
{"type":"session","version":3,"id":"019a0000-0000-7000-8000-00000000001a","timestamp":"2026-09-28T08:00:10.000Z","cwd":"/work/omp","parentSession":"/home/me/.omp/agent/sessions/--work-omp--/2026-09-28T08-00-00-000Z_019a0000-0000-7000-8000-00000000000a.jsonl"}
|
||||
{"type":"model_change","id":"b0000001","parentId":null,"timestamp":"2026-09-28T08:00:10.100Z","model":"anthropic/claude-sonnet-5","role":"default"}
|
||||
{"type":"message","id":"b0000002","parentId":"b0000001","timestamp":"2026-09-28T08:00:11.000Z","message":{"role":"user","content":[{"type":"text","text":"Find the parser"}],"attribution":"user","timestamp":1790582411000}}
|
||||
{"type":"message","id":"b0000003","parentId":"b0000002","timestamp":"2026-09-28T08:00:20.000Z","message":{"role":"assistant","content":[{"type":"text","text":"ok"}],"api":"anthropic-messages","provider":"anthropic","model":"claude-sonnet-5","usage":{"input":300,"output":30,"cacheRead":100,"cacheWrite":0,"totalTokens":430,"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0,"total":0}},"stopReason":"stop","timestamp":1790582420000}}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
{"type":"session","version":3,"id":"019a0000-0000-7000-8000-00000000002a","timestamp":"2026-09-28T08:00:25.000Z","cwd":"/work/omp","parentSession":"/home/me/.omp/agent/sessions/--work-omp--/2026-09-28T08-00-00-000Z_019a0000-0000-7000-8000-00000000000a/0-Explore.jsonl"}
|
||||
{"type":"message","id":"c0000001","parentId":null,"timestamp":"2026-09-28T08:00:26.000Z","message":{"role":"user","content":[{"type":"text","text":"Grep for parse"}],"attribution":"user","timestamp":1790582426000}}
|
||||
{"type":"message","id":"c0000002","parentId":"c0000001","timestamp":"2026-09-28T08:00:30.000Z","message":{"role":"assistant","content":[{"type":"text","text":"ok"}],"api":"anthropic-messages","provider":"anthropic","model":"claude-sonnet-5","usage":{"input":40,"output":4,"cacheRead":0,"cacheWrite":0,"totalTokens":44,"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0,"total":0}},"stopReason":"stop","timestamp":1790582430000}}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
{"type":"session","version":3,"id":"019a0000-0000-7000-8000-00000000003a","timestamp":"2026-09-28T08:00:35.000Z","cwd":"/work/omp","parentSession":"/home/me/.omp/agent/sessions/--work-omp--/2026-09-28T08-00-00-000Z_019a0000-0000-7000-8000-00000000000a.jsonl"}
|
||||
{"type":"message","id":"d0000001","parentId":null,"timestamp":"2026-09-28T08:00:36.000Z","message":{"role":"user","content":[{"type":"text","text":"Review the plan"}],"attribution":"user","timestamp":1790582436000}}
|
||||
{"type":"message","id":"d0000002","parentId":"d0000001","timestamp":"2026-09-28T08:00:40.000Z","message":{"role":"assistant","content":[{"type":"text","text":"ok"}],"api":"openai-responses","provider":"openai","model":"gpt-6-astra","usage":{"input":50,"output":10,"cacheRead":0,"cacheWrite":0,"totalTokens":60,"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0,"total":0}},"stopReason":"stop","timestamp":1790582440000}}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"question":"why?","answer":"because"}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
{"type":"title","v":1,"title":"Port the parser","source":"auto","updatedAt":"2026-09-29T09:00:00.000Z","pad":" "}
|
||||
{"type":"session","version":3,"id":"019a0000-0000-7000-8000-00000000000c","title":"Port the parser","titleSource":"auto","timestamp":"2026-09-29T09:00:00.000Z","cwd":"/work/omp","parentSession":"/home/me/.omp/agent/sessions/--work-omp--/2026-09-28T08-00-00-000Z_019a0000-0000-7000-8000-00000000000a.jsonl"}
|
||||
{"type":"model_change","id":"a0000001","parentId":null,"timestamp":"2026-09-28T08:00:00.100Z","model":"anthropic/claude-opus-5-5","role":"default"}
|
||||
{"type":"thinking_level_change","id":"a0000002","parentId":"a0000001","timestamp":"2026-09-28T08:00:00.100Z","thinkingLevel":"high"}
|
||||
{"type":"message","id":"a0000003","parentId":"a0000002","timestamp":"2026-09-28T08:00:01.000Z","message":{"role":"user","content":[{"type":"text","text":"Port the parser"}],"attribution":"user","timestamp":1790582401000}}
|
||||
{"type":"message","id":"a0000004","parentId":"a0000003","timestamp":"2026-09-28T08:00:05.000Z","message":{"role":"assistant","content":[{"type":"text","text":"ok"}],"api":"anthropic-messages","provider":"anthropic","model":"claude-opus-5-5","usage":{"input":100,"output":50,"cacheRead":1000,"cacheWrite":200,"totalTokens":1350,"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0,"total":0}},"stopReason":"toolUse","timestamp":1790582405000}}
|
||||
{"type":"model_usage","id":"a0000005","parentId":"a0000004","timestamp":"2026-09-28T08:00:06.000Z","purpose":"title","role":"smol","api":"anthropic-messages","provider":"anthropic","model":"claude-haiku-5","usage":{"input":20,"output":5,"cacheRead":0,"cacheWrite":0,"totalTokens":25,"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0,"total":0}},"stopReason":"stop"}
|
||||
{"type":"message","id":"e0000001","parentId":"a0000005","timestamp":"2026-09-29T09:00:10.000Z","message":{"role":"user","content":[{"type":"text","text":"Try another way"}],"attribution":"user","timestamp":1790672410000}}
|
||||
{"type":"message","id":"e0000002","parentId":"e0000001","timestamp":"2026-09-29T09:00:20.000Z","message":{"role":"assistant","content":[{"type":"text","text":"ok"}],"api":"anthropic-messages","provider":"anthropic","model":"claude-opus-5-5","usage":{"input":7,"output":3,"cacheRead":0,"cacheWrite":0,"totalTokens":10,"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0,"total":0}},"stopReason":"stop","timestamp":1790672420000}}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{"type":"title","v":1,"title":"Tidy the tests","source":"user","updatedAt":"2026-09-29T10:00:30.000Z","pad":" "}
|
||||
{"type":"session","version":3,"id":"019a0000-0000-7000-8000-00000000000d","title":"Refactor","titleSource":"auto","timestamp":"2026-09-29T10:00:00.000Z","cwd":"/work/omp"}
|
||||
{"type":"message","id":"f0000001","parentId":null,"timestamp":"2026-09-29T10:00:01.000Z","message":{"role":"user","content":[{"type":"text","text":"<template>Refactor the helpers</template>"}],"attribution":"user","timestamp":1790676001000}}
|
||||
{"type":"message","id":"f0000002","parentId":"f0000001","timestamp":"2026-09-29T10:00:10.000Z","message":{"role":"assistant","content":[{"type":"text","text":"ok"}],"api":"anthropic-messages","provider":"anthropic","model":"claude-opus-5-5","usage":{"input":1,"output":1,"cacheRead":0,"cacheWrite":0,"totalTokens":2,"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0,"total":0}},"stopReason":"stop","timestamp":1790676010000}}
|
||||
{"type":"title_change","id":"f0000003","parentId":"f0000002","timestamp":"2026-09-29T10:00:20.000Z","title":"Refactor the helpers","previousTitle":"Refactor","source":"auto","trigger":"auto"}
|
||||
{"type":"title_change","id":"f0000004","parentId":"f0000003","timestamp":"2026-09-29T10:00:30.000Z","title":"Tidy the tests","previousTitle":"Refactor the helpers","source":"user","trigger":"rename"}
|
||||
Reference in New Issue
Block a user