picocode-core 0.9.138 → 0.9.140

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/derive.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "picocode-core",
3
- "version": "0.9.138",
3
+ "version": "0.9.140",
4
4
  "description": "The agent runtime behind pico: sessions, tools, subagents, MCP, memory, and model access",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/derive.js CHANGED
@@ -88,6 +88,7 @@ function foldMessage(state, event) {
88
88
  const base = {
89
89
  messageId: event.id,
90
90
  eventId: event.id,
91
+ at: event.at ?? null,
91
92
  role: message.role,
92
93
  locked: event._sourceIndex < state.latestCompactIndex,
93
94
  steered: !!event._steered,
@@ -202,7 +203,7 @@ export function deriveState(events) {
202
203
  break
203
204
  case 'turn_transcript':
204
205
  for (const item of event.data.items || []) {
205
- const restored = { ...item, eventId: event.id }
206
+ const restored = { ...item, eventId: event.id, at: item.at ?? event.at ?? null }
206
207
  state.transcript.push(restored)
207
208
  if (restored.kind === 'tool' && restored.callId) state.toolItems.set(restored.callId, restored)
208
209
  }