chat.session.prompt should use the last used model like the opencode cli. Instead it defaults to gpt-5-nano #1593

Closed
opened 2026-02-16 17:31:41 -05:00 by yindo · 2 comments
Owner

Originally created by @remorses on GitHub (Sep 3, 2025).

Originally assigned to: @rekram1-node on GitHub.

chat.session.prompt should use the last used model like the opencode cli. Instead it defaults to gpt-5-nano

When doing

await client.session
  .prompt({
    path: { id: session.data.id },
    body: {
      parts: [{ type: 'text', text: message }],˙
    },
  })
Originally created by @remorses on GitHub (Sep 3, 2025). Originally assigned to: @rekram1-node on GitHub. `chat.session.prompt` should use the last used model like the opencode cli. Instead it defaults to `gpt-5-nano` When doing ```tsx await client.session .prompt({ path: { id: session.data.id }, body: { parts: [{ type: 'text', text: message }],˙ }, }) ```
yindo closed this issue 2026-02-16 17:31:41 -05:00
Author
Owner

@rekram1-node commented on GitHub (Sep 7, 2025):

depending on your flow this may work now, can you try again using latest?

@rekram1-node commented on GitHub (Sep 7, 2025): depending on your flow this may work now, can you try again using latest?
Author
Owner

@rekram1-node commented on GitHub (Sep 18, 2025):

Just tested should be fixed due to changes I made last week

@rekram1-node commented on GitHub (Sep 18, 2025): Just tested should be fixed due to changes I made last week
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1593