We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3ee9d2 commit 780325eCopy full SHA for 780325e
lua/opencode/ui/renderer.lua
@@ -82,15 +82,17 @@ function M.render_full_session()
82
return
83
end
84
85
- fetch_session():and_then(function(session_data)
86
- M.reset()
+ fetch_session():and_then(M._render_full_session_data)
+end
87
+
88
+function M._render_full_session_data(session_data)
89
+ M.reset()
90
- state.messages = session_data
- local output_data = formatter._format_messages(state.active_session)
91
+ state.messages = session_data
92
+ local output_data = formatter._format_messages(state.active_session)
93
- M.write_output(output_data)
- M.scroll_to_bottom()
- end)
94
+ M.write_output(output_data)
95
+ M.scroll_to_bottom()
96
97
98
---Shift cached line positions by delta starting from from_line
0 commit comments