#957

Keep command replies and clear history in the active conversation

DraftChessing234wants to merge intofrom

Command replies such as /w, /channels, and usage errors appear in the mesh timeline even when issued in a channel or DM. /clear also misses the selected geohash and leaves process-wide history available to reappear on a later snapshot. Route local command replies to the active conversation, clear only its history in both state projections, preserve other conversations and replay dedup records, and show the optional password in /join help.

Fixes #430. Fixes #69. Fixes #123. Fixes #248.

This fixes the conversation-placement behavior reported in #69 and #123. Unsupported commands still produce an error, now in the conversation where they were entered; this does not introduce /save or /transfer features.

Validation:

  • Six new regression tests fail on main and pass with this change.
  • Full testDebugUnitTest lintDebug completes: 618 app tests and 216 Wear tests, zero failures, three existing skips. Lint reports existing repository diagnostics; no findings point to added lines.
  • Final focused command/message-store run completes: 31 tests, zero failures, three existing skips.
  • git diff --check passes.

Risk: local message/history presentation and clear behavior. No packet or transport format changes. Physical Mesh Lab validation and before/after UI screenshots have not been completed, so this PR remains a draft.

Activity

7
Chessing234reviewed25d ago
Chessing23425d ago

reviewed command reply routing and clear-history handling for private, geohash, mesh-channel and public conversations. dedup records remain intact; this pass is source review only.

heyaim20d ago

/clear can clear a different channel from the one displayed. After tapping a geohash link in a classic channel, /clear left the classic history visible and cleared the hidden geohash history. Prioritizing private chats, then the classic channel, then geohash resolved this in my emulator test. Private-chat, classic-only, geohash-only, and mesh-only Robolectric checks passed too.

Tested through the app’s chat UI in an Android emulator with synthetic messages, normal startup bypassed, and networking disabled. No physical-device test.

chatgpt-codex-connector[bot]16d ago

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

ReviewStatusCommitReview trigger
📝 Code Review✅ Completed 2026-10-14T11:26:35.613527Z15fa68bDraft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This pull request is a draft

Merging is unavailable until it is marked ready for review.