Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lua/opencode/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ M.defaults = {
show_output = true,
show_reasoning_output = true,
},
auto_scroll = false,
always_scroll_to_bottom = false,
},
input = {
Expand Down
8 changes: 0 additions & 8 deletions lua/opencode/ui/output_window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,4 @@ function M.clear()
M.viewport_at_bottom = true
end

function M.should_auto_scroll()
if config.ui.output.always_scroll_to_bottom then
return true
end

return config.ui.output.auto_scroll ~= false
end

return M
5 changes: 0 additions & 5 deletions lua/opencode/ui/renderer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,7 @@ function M.scroll_to_bottom()

trigger_on_data_rendered()

if not output_window.should_auto_scroll() then
return
end

-- Determine if we should scroll to bottom

local should_scroll = false

-- Always scroll on initial render
Expand Down
Loading