feat: no-truncate param for debug#1207
Merged
afjcjsbx merged 4 commits intosipeed:mainfrom Mar 10, 2026
Merged
Conversation
huaaudio
approved these changes
Mar 9, 2026
Collaborator
huaaudio
left a comment
There was a problem hiding this comment.
Thanks for the PR! LGTM, solid targeted fix. One thing to suggest is that before we merge, try to make it documented in the CLI help and (optionally) the README.
| // Handles multi-byte Unicode characters properly. | ||
| // If the string is truncated, "..." is appended to indicate truncation. | ||
| func Truncate(s string, maxLen int) string { | ||
| // If the no-truncate flag is active, it returns the integer string |
Collaborator
Author
|
hi @huaaudio, thanks for the review, you are right! it was an oversight, added doc and shorthand flag |
This was referenced Mar 11, 2026
fishtrees
pushed a commit
to fishtrees/picoclaw
that referenced
this pull request
Mar 12, 2026
feat: no-truncate param for debug
dj-oyu
pushed a commit
to dj-oyu/picoclaw
that referenced
this pull request
Mar 14, 2026
feat: no-truncate param for debug
dj-oyu
pushed a commit
to dj-oyu/picoclaw
that referenced
this pull request
Mar 16, 2026
feat: no-truncate param for debug
andressg79
pushed a commit
to andressg79/picoclaw
that referenced
this pull request
Mar 30, 2026
feat: no-truncate param for debug
ra1phdd
pushed a commit
to ra1phdd/picoclaw-pkg
that referenced
this pull request
Apr 12, 2026
feat: no-truncate param for debug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
This PR introduces a new
--no-truncateCLI flag to thegatewaycommand to improve the debugging experience.Currently, large messages, prompts, and JSON payloads are shortened in the logs via
utils.Truncate()to prevent console clutter. However, this makes it difficult to inspect full LLM responses or complex tool arguments during development.This feature:
disableTruncationviaatomic.Bool) inpkg/utils/string.go.--no-truncateflag in the Cobragatewaycommand.🗣️ Type of Change
🤖 AI Code Generation
🔗 Related Issue
(Leave blank if there is no linked issue)
📚 Technical Context (Skip for Docs)
🧪 Test Environment
📸 Evidence (Optional)
Click to view Logs/Screenshots
Command usage validation:
$ picoclaw gateway --no-truncate Error: the --no-truncate flag requires the --debug (-d) flag to be set