fix(messages): remove text truncation from thread command#134
Conversation
The thread command hard-truncated messages at 80 characters in text output, making it impossible to read full message content without switching to JSON. Thread is a detail view for reading conversations, so it should display full content. History (list view) retains truncation. Adds flatten() helper that replaces newlines with spaces without truncating. Closes #128
TDD AssessmentWhat changed
|
| Area | Verdict |
|---|---|
flatten() unit tests |
Adequate — all meaningful cases covered |
runThread text output assertions |
Gap — no assertion that flatten is actually applied or that long/multiline content survives |
runThread JSON path |
Adequate — output captured and asserted |
The flatten() function itself is correct and well-tested. The one actionable gap is the lack of output assertions in TestRunThread_Success for the text path.
monit-reviewer
left a comment
There was a problem hiding this comment.
Automated PR Review
Reviewed commit: 0c6ee08
Summary
No issues found. (1 info-level observations excluded)
Completed in 2m 26s | $0.37
| Field | Value |
|---|---|
| Reviewers | hybrid-synthesis, database:sql-reviewer, security:code-auditor, harness-engineering:knowledge-reviewer, harness-engineering:enforcement-reviewer, harness-engineering:architecture-reviewer, harness-engineering:legibility-reviewer |
| Reviewed by | pr-review-daemon · monit-pr-reviewer |
| Duration | 2m 26s (Reviewers: 45s · Synthesis: 24s) |
| Cost | $0.37 |
| Tokens | 115.8k in / 11.2k out |
| Turns | 13 |
- README: add canvas command section, --since flag on thread, canvas alias - CHANGELOG: add entries for canvas, --since, edited metadata, truncation fix - integration-tests: add canvas tests (Part 10), thread --since and [edited] indicator verification to existing sections
…138) ## Summary - **README**: Added canvas command section, `--since` flag on thread, canvas alias in aliases table - **CHANGELOG**: Added entries for canvas (#137), `--since` (#135), edited metadata (#136), truncation fix (#134) - **integration-tests.md**: Added Part 10 (Canvas Tests), enhanced Part 3.4 with `--since` and full-text verification, enhanced Part 3.5 with `[edited]` indicator checks ## Test plan - [x] Docs-only change, no code modified
Summary
--output jsonto read full contentflatten()helper (newlines→spaces, no truncation) for detail views; thread uses it instead oftruncate()Closes #128
Test plan
TestFlatten— 6 cases covering empty, short, long, and multiline stringsTestTruncatestill passes (history unaffected)make lintclean