fix(messages): surface edited message metadata and text#136
Conversation
The Message struct was missing the `edited` field, so Slack's edit metadata was silently dropped during JSON unmarshaling. The `text` field already contains the latest content from the API, but without the `edited` field there was no way to tell if a message had been modified. Adds Edited struct with user/ts fields to Message. Thread and history text output now shows [edited] indicator for modified messages. JSON output includes the full edited metadata. Closes #117
TDD AssessmentWhat's coveredThe
GapsNo command-level tests for the Both
Precedent exists for this style of test. JSON serializationThe VerdictClient-layer deserialization is well tested. The command-layer rendering of |
…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
Editedstruct (user + ts) toMessagetype — previously silently dropped during JSON unmarshal[edited]indicator for modified messageseditedmetadata objectCloses #117
Test plan
TestClient_GetThreadReplies_WithEdited— verifies edited metadata is deserialized correctlyEditedfieldmake lintclean