Repository navigation
output: improve terminal text event readability - #1099
Merged
Merged
Conversation
Print one prefix per text event and preserve its payload bytes so HTTP headers and bodies remain readable. Show PID and process name separately from the displayed connection tuple, retaining the SDK connection identity and typed event UUID. Update console and formatter expectations, strict stdout/stderr E2E assertions, and output documentation for the revised representation.
Contributor
There was a problem hiding this comment.
Devin Review found 1 potential issue.
4 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
Comment on lines
+52
to
+58
| case domain.CaptureFormatText: | ||
| record := append([]byte(fmt.Sprintf("[log_type=event capture_format=%s module=%s] ", e.Format, e.Module)), e.Payload...) | ||
| // Keep the next record on its own line without altering the payload. | ||
| if len(e.Payload) == 0 || e.Payload[len(e.Payload)-1] != '\n' { | ||
| record = append(record, '\n') | ||
| } | ||
| return p.write(ctx, record) |
Contributor
There was a problem hiding this comment.
|
🔧 Debug Build Complete (PR #1099) 📦 Direct Download Links (GitHub login required):
Each link downloads a single ⏰ Files will be retained for 7 days, please download and test promptly. Build targets: Linux (amd64/arm64/loong64) and Android (amd64/arm64). Available packages are listed above. |
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.
HTTP requests and responses currently repeat the event prefix on every terminal line and render CRLF as visible
\x0descapes. This change prints one prefix per text event and preserves the payload bytes, including line endings and blank lines.Decoded text summaries now show
pidandpnameas separate fields. The displayedconnectioncontains only the original endpoint tuple, transport, and generation; its legacy PID-FD-name prefix is removed. SDK connection IDs and typed event UUIDs remain unchanged. Operational logs and keylog records keep their existing line labels and control-character escaping.Console and formatter tests, strict OpenSSL stdout/stderr E2E assertions, shared terminal projections, and output documentation are updated together. The E2E cases use text/pcapng and compare complete terminal payloads with decoded JSON TEXT events.
Validation: the maintainer manually verified both terminal layout and process/connection display on a Linux VM. Automated builds, tests, lint, and E2E were not run at the maintainer's request.