fix(cli): accept generic uploads, surface message edits, list DMs#2781
Open
JQuantAnalytics wants to merge 2 commits into
Open
fix(cli): accept generic uploads, surface message edits, list DMs#2781JQuantAnalytics wants to merge 2 commits into
JQuantAnalytics wants to merge 2 commits into
Conversation
Align buzz-cli with relay/desktop behavior so smoke quirks stop looking like nest misconfig: deny-list MIME for uploads (text/docs), overlay kind:40003 edits in get/thread and search edits, and list DMs via membership metadata instead of obsolete kind 41001. Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: jquant <115501859+JQuantAnalytics@users.noreply.github.com> Signed-off-by: jquant <115501859+JQuantAnalytics@users.noreply.github.com>
Fresh-install allowlist omitted message edits, so NIP-50 search could not find post-edit text even when the CLI requested kind 40003. Expand the allowlist via migration 0025, update the maintenance script, and overlay edit hits onto their target messages in `messages search`. Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: jquant <115501859+JQuantAnalytics@users.noreply.github.com> Signed-off-by: jquant <115501859+JQuantAnalytics@users.noreply.github.com>
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.
Summary
application/octet-stream(HTML/SVG/executables still blocked).messages get/threadoverlay the latest kind40003edit onto the original (and hide raw edit rows by default);messages searchincludes40003, resolves edit hits to overlaid originals, and migration0025adds40003to the fresh-install FTS allowlist so edited text is indexed.dms listno longer queries obsolete kind41001; it lists membership + kind39000channels taggedt=dm(matches Desktop).Context
Found during nest setup smoke on a fresh Buzz community: text upload failed client-side even though the relay already accepts generic files; edits succeeded but CLI reads looked stale; search missed edited bodies because the FTS allowlist omitted kind
40003;dms openworked butdms liststayed empty.Test plan
cargo test -p buzz-cli --lib upload_mime_cargo test -p buzz-cli --lib apply_message_editscargo test -p buzz-db --lib embedded_migrator_contains_consolidated_initial_schemadms listreturns seeded DM;messages getshows overlaid edit body0025:buzz messages search --query "<edited text>"hitsbuzz upload file --file note.txt/dms list/ edit overlay