Skip to content

Commit

Permalink
fix: complete details block on half exit for CoT
Browse files Browse the repository at this point in the history
  • Loading branch information
yuukibarns committed Jan 27, 2025
1 parent 4245e20 commit b5989e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/gp/dispatcher.lua
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,11 @@ local query = function(buf, provider, payload, handler, on_exit, callback)
end
end

if is_reasoning then
handler(qid, "\n", true)
handler(qid, "\n</details><!-- }}} -->\n\n", false)
is_reasoning = false
end

-- if qt.response == "" then
-- logger.error(qt.provider .. " response is empty: \n" .. vim.inspect(qt.raw_response))
Expand Down

0 comments on commit b5989e8

Please sign in to comment.