Skip to content

Commit b67fa60

Browse files
♻️ Extend command detail truncation limits
- Increased the character limit for truncating command details in the output from 60 to 1000 characters for better visibility. - Updated related sections for various tool types including Bash, WebFetch, and AskUserQuestion to reflect the new truncation limit.
1 parent 4f4fb9a commit b67fa60

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

continuous_claude.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,7 +1546,7 @@ run_claude_iteration() {
15461546
# Helper to safely get detail string with fallback
15471547
def get_detail:
15481548
if .name == "Bash" then
1549-
((.input.command // "" | gsub($pwd + "/"; "") | split("\n")[0] | if length > 80 then .[0:80] + "..." else . end) // "")
1549+
((.input.command // "" | gsub($pwd + "/"; "") | split("\n")[0] | if length > 1000 then .[0:1000] + "..." else . end) // "")
15501550
elif .name == "Read" then
15511551
(((.input.file_path // "") | relpath) + (if .input.offset then " (line " + (.input.offset | tostring) + ")" else "" end)) // ""
15521552
elif .name == "Write" or .name == "Edit" or .name == "MultiEdit" then
@@ -1556,22 +1556,22 @@ run_claude_iteration() {
15561556
elif .name == "Grep" then
15571557
(("\"" + (.input.pattern // "") + "\"" + (if .input.path then " in " + (.input.path | relpath) else "" end) + (if .input.glob then " (" + .input.glob + ")" else "" end))) // ""
15581558
elif .name == "WebFetch" or (.name | startswith("WebFetch")) then
1559-
(((.input.url // "") + " → " + ((.input.prompt // "") | if length > 40 then .[0:40] + "..." else . end))) // ""
1559+
(((.input.url // "") + " → " + ((.input.prompt // "") | if length > 1000 then .[0:1000] + "..." else . end))) // ""
15601560
elif .name == "WebSearch" or (.name | startswith("WebSearch")) then
15611561
(("\"" + (.input.query // "") + "\"" + (if .input.allowed_domains then " (domains: " + (.input.allowed_domains | join(", ")) + ")" else "" end))) // ""
15621562
elif .name == "Task" then
15631563
(("[" + (.input.subagent_type // "agent") + "] " + (.input.description // ""))) // ""
15641564
elif .name == "NotebookEdit" then
15651565
((((.input.notebook_path // "") | relpath) + " [" + (.input.edit_mode // "replace") + "]")) // ""
15661566
elif .name == "AskUserQuestion" then
1567-
((.input.questions[0].question // "" | if length > 60 then .[0:60] + "..." else . end)) // ""
1567+
((.input.questions[0].question // "" | if length > 1000 then .[0:1000] + "..." else . end)) // ""
15681568
elif .name == "Skill" or .name == "SlashCommand" then
15691569
(("/" + (.input.skill // .input.command // "") + (if .input.args then " " + .input.args else "" end))) // ""
15701570
elif (.name | test("TodoWrite"; "i")) then
15711571
((if .input.todos then
15721572
(.input.todos | map(select(.status == "in_progress") | .content // .activeForm) | first //
15731573
(.input.todos | first | .content // .activeForm // "")) |
1574-
if length > 60 then .[0:60] + "..." else . end
1574+
if length > 1000 then .[0:1000] + "..." else . end
15751575
else "" end)) // ""
15761576
elif (.name | test("TaskCreate"; "i")) then
15771577
(.input.subject // .input.description // "")

0 commit comments

Comments
 (0)