mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-30 13:15:08 +01:00
core: enable reasoning.encrypted_content and reasoningSummary for opencode provider\ntui: adjust editorY position calculation
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user