feat(tui): modes

This commit is contained in:
adamdottv 2025-07-10 09:53:18 -05:00
parent ba5be6b625
commit ce4cb820f7
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
20 changed files with 430 additions and 87 deletions

View file

@ -117,10 +117,12 @@ func TestSessionChat(t *testing.T) {
context.TODO(),
"id",
opencode.SessionChatParams{
Mode: opencode.F("mode"),
ModelID: opencode.F("modelID"),
Parts: opencode.F([]opencode.UserMessagePartUnionParam{opencode.TextPartParam{
Text: opencode.F("text"),
Type: opencode.F(opencode.TextPartTypeText),
Text: opencode.F("text"),
Type: opencode.F(opencode.TextPartTypeText),
Synthetic: opencode.F(true),
}}),
ProviderID: opencode.F("providerID"),
},