branch: elpa/gptel
commit 4932cf776c430bc86344b79dcff5159f76ce12a6
Author: Sam Halliday <[email protected]>
Commit: Karthik Chikmagalur <[email protected]>

    gptel: Truncate tool call display to 256 chars
    
    * gptel.el (gptel--format-tool-call): When using the default tool
    call preview UI, truncate the tool call display to 256 chars by
    default instead of to half the window width.  This accommodates
    most common tool calls without requiring the use of the dedicated
    inspect tool command. (#1401)
---
 gptel.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gptel.el b/gptel.el
index e51b366562..a616885409 100644
--- a/gptel.el
+++ b/gptel.el
@@ -2244,7 +2244,7 @@ NAME and ARG-VALUES are the name and arguments for the 
call."
                                (prin1-to-string
                                 (replace-regexp-in-string
                                  "\n" "⮐" (truncate-string-to-width
-                                           arg (floor (window-width) 2)
+                                           arg 256
                                            nil nil t))))
                               (t (prin1-to-string arg))))
                       arg-values " ")

Reply via email to