ework-daemon 0.4.10 → 0.4.11

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/opencode.ts +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ework-daemon",
3
- "version": "0.4.10",
3
+ "version": "0.4.11",
4
4
  "description": "Issue-driven AI development daemon. Spawns opencode subprocesses to resolve Gitea issues.",
5
5
  "module": "src/index.ts",
6
6
  "type": "module",
package/src/opencode.ts CHANGED
@@ -820,6 +820,12 @@ export class Engine {
820
820
  // them); only the explicit model-override var is neutralized.
821
821
  const childEnv = { ...process.env };
822
822
  if (!model) delete childEnv.OPENCODE_MODEL;
823
+ // Strip parent-session env vars so the child opencode reads its own
824
+ // opencode.json instead of inheriting a parent session's model/provider.
825
+ delete childEnv.OPENCODE;
826
+ delete childEnv.OPENCODE_PID;
827
+ delete childEnv.OPENCODE_RUN_ID;
828
+ delete childEnv.OPENCODE_PROCESS_ROLE;
823
829
 
824
830
  try {
825
831
  const proc = spawn({