core: enable reasoning.encrypted_content and reasoningSummary for opencode provider\ntui: adjust editorY position calculation

This commit is contained in:
Dax Raad
2025-09-26 01:27:53 -04:00
parent 5d95846df1
commit 7ec3900208
2 changed files with 3 additions and 4 deletions

View File

@@ -98,8 +98,8 @@ export namespace ProviderTransform {
} }
if (providerID === "opencode") { if (providerID === "opencode") {
result["promptCacheKey"] = sessionID result["promptCacheKey"] = sessionID
// result["include"] = ["reasoning.encrypted_content"] result["include"] = ["reasoning.encrypted_content"]
// result["reasoningSummary"] = "auto" result["reasoningSummary"] = "auto"
} }
} }
return result return result

View File

@@ -967,7 +967,6 @@ func (a Model) home() (string, int, int) {
█░░░ █░░█ █░░█ █▀▀▀ █░░░ █░░█ █░░█ █▀▀▀
▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀` ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀`
logo := lipgloss.JoinHorizontal( logo := lipgloss.JoinHorizontal(
lipgloss.Top, lipgloss.Top,
muted(open), muted(open),
@@ -1043,7 +1042,7 @@ func (a Model) home() (string, int, int) {
) )
editorX := max(0, (effectiveWidth-editorWidth)/2) editorX := max(0, (effectiveWidth-editorWidth)/2)
editorY := (a.height / 2) + (mainHeight / 2) - 2 editorY := (a.height / 2) + (mainHeight / 2) - 3
if editorLines > 1 { if editorLines > 1 {
content := a.editor.Content() content := a.editor.Content()