@opencode/client 2.0.7 → 2.0.8

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.
@@ -3066,7 +3066,7 @@ export type ConfigEntry = {
3066
3066
  portable_shell_scanner?: boolean;
3067
3067
  subagent_depth?: number;
3068
3068
  policies?: Array<{
3069
- action: "provider.use";
3069
+ action: "provider.use" | "permission";
3070
3070
  resource: string;
3071
3071
  effect: "allow" | "deny";
3072
3072
  }>;
@@ -911,6 +911,11 @@ export function createData(config) {
911
911
  : "interrupted",
912
912
  time: { created: event.created },
913
913
  });
914
+ if (store.session.message[event.data.sessionID]?.some((item) => item.type === "assistant" &&
915
+ item.content.some((part) => part.type === "tool" && (part.state.status === "streaming" || part.state.status === "running")))) {
916
+ sync.invalidate(`session.message:${event.data.sessionID}`);
917
+ refresh(() => result.session.message.sync(event.data.sessionID));
918
+ }
914
919
  // An event can overtake the first read; queue a revalidation when that read is still active.
915
920
  if (!store.session.info[event.data.sessionID] && !sync.has(`session:${event.data.sessionID}`))
916
921
  return;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/client",
4
- "version": "2.0.7",
4
+ "version": "2.0.8",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -57,8 +57,8 @@
57
57
  "typecheck": "tsgo --noEmit"
58
58
  },
59
59
  "dependencies": {
60
- "@opencode/schema": "2.0.7",
61
- "@opencode/protocol": "2.0.7"
60
+ "@opencode/schema": "2.0.8",
61
+ "@opencode/protocol": "2.0.8"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "effect": "4.0.0-rc.112",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@effect/platform-node": "4.0.0-rc.112",
77
- "@opencode/httpapi-codegen": "2.0.7",
77
+ "@opencode/httpapi-codegen": "2.0.8",
78
78
  "@tsconfig/bun": "1.0.9",
79
79
  "@types/bun": "1.4.0",
80
80
  "@typescript/native-preview": "7.0.0-dev.20251207.1",