opencode-manifold 0.4.21 → 0.4.22

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.
package/dist/index.js CHANGED
@@ -30,9 +30,15 @@ async function getModelPath(client, sessionID) {
30
30
  });
31
31
  if (messagesResponse.data && messagesResponse.data.length > 0) {
32
32
  const lastMessage = messagesResponse.data[messagesResponse.data.length - 1];
33
- if (lastMessage.info && lastMessage.info.model) {
34
- const { providerID, modelID } = lastMessage.info.model;
35
- return `${providerID}/${modelID}`;
33
+ if (lastMessage.info) {
34
+ if (lastMessage.info.role === "assistant") {
35
+ const assistantMsg = lastMessage.info;
36
+ return `${assistantMsg.providerID}/${assistantMsg.modelID}`;
37
+ }
38
+ if (lastMessage.info.model) {
39
+ const { providerID, modelID } = lastMessage.info.model;
40
+ return `${providerID}/${modelID}`;
41
+ }
36
42
  }
37
43
  }
38
44
  } catch (error) {
package/dist/tui.js CHANGED
@@ -30,9 +30,15 @@ async function getModelPath(client, sessionID) {
30
30
  });
31
31
  if (messagesResponse.data && messagesResponse.data.length > 0) {
32
32
  const lastMessage = messagesResponse.data[messagesResponse.data.length - 1];
33
- if (lastMessage.info && lastMessage.info.model) {
34
- const { providerID, modelID } = lastMessage.info.model;
35
- return `${providerID}/${modelID}`;
33
+ if (lastMessage.info) {
34
+ if (lastMessage.info.role === "assistant") {
35
+ const assistantMsg = lastMessage.info;
36
+ return `${assistantMsg.providerID}/${assistantMsg.modelID}`;
37
+ }
38
+ if (lastMessage.info.model) {
39
+ const { providerID, modelID } = lastMessage.info.model;
40
+ return `${providerID}/${modelID}`;
41
+ }
36
42
  }
37
43
  }
38
44
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-manifold",
3
- "version": "0.4.21",
3
+ "version": "0.4.22",
4
4
  "description": "Multi-agent development system for opencode with persistent knowledge",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",