shennian 0.2.70 → 0.2.71

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.
@@ -17,6 +17,9 @@ function isCodexRolloutPath(filePath) {
17
17
  function shouldBackfillWindowsCodex(state) {
18
18
  return process.platform === 'win32' && state.codexWindowsPathParserFixed !== true;
19
19
  }
20
+ function shouldBackfillCodexAppContextWrapper(state) {
21
+ return state.codexAppContextWrapperFixed !== true;
22
+ }
20
23
  export class NativeSessionFusionService {
21
24
  client;
22
25
  timer = null;
@@ -97,6 +100,7 @@ export class NativeSessionFusionService {
97
100
  const state = loadNativeScannerState();
98
101
  const nextFilesState = { ...state.files };
99
102
  const backfillWindowsCodex = shouldBackfillWindowsCodex(state);
103
+ const backfillCodexAppContextWrapper = shouldBackfillCodexAppContextWrapper(state);
100
104
  const batches = [];
101
105
  const files = [...listCodexRolloutFiles(), ...listClaudeTranscriptFiles(), ...listOpenCodeSessionFiles()];
102
106
  for (const filePath of files) {
@@ -106,7 +110,7 @@ export class NativeSessionFusionService {
106
110
  const isOpenCode = filePath.endsWith('.opencode-session.json');
107
111
  const startOffset = isOpenCode && current?.mtimeMs !== stat.mtimeMs
108
112
  ? 0
109
- : backfillWindowsCodex && isCodex
113
+ : (backfillWindowsCodex || backfillCodexAppContextWrapper) && isCodex
110
114
  ? 0
111
115
  : current?.offset ?? 0;
112
116
  const parsed = isOpenCode
@@ -144,6 +148,9 @@ export class NativeSessionFusionService {
144
148
  if (backfillWindowsCodex) {
145
149
  state.codexWindowsPathParserFixed = true;
146
150
  }
151
+ if (backfillCodexAppContextWrapper) {
152
+ state.codexAppContextWrapperFixed = true;
153
+ }
147
154
  saveNativeScannerState(state);
148
155
  }
149
156
  tryClaimManagedEcho(event) {
@@ -5,6 +5,7 @@ export type NativeScannerState = {
5
5
  mtimeMs: number;
6
6
  }>;
7
7
  codexWindowsPathParserFixed?: boolean;
8
+ codexAppContextWrapperFixed?: boolean;
8
9
  };
9
10
  export type ParsedNativeEvent = NativeSessionEventPayload;
10
11
  export type PendingManagedClaim = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shennian",
3
- "version": "0.2.70",
3
+ "version": "0.2.71",
4
4
  "description": "Shennian — AI Agent Control Plane CLI",
5
5
  "type": "module",
6
6
  "bin": {