Skip to content

feat: replace chat-cli /connect with /dm and /new - #206

Merged
mchenani merged 17 commits into
mainfrom
mch/libchat-refactoring-connect
Aug 19, 2026
Merged

feat: replace chat-cli /connect with /dm and /new#206
mchenani merged 17 commits into
mainfrom
mch/libchat-refactoring-connect

Conversation

@mchenani

Copy link
Copy Markdown
Contributor

No description provided.

@jazzz jazzz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All these changes make sense to me. No blockers but a few notes.

Note: For reviews I tend to use this feedback ladder so there is no ambiguity about severity or importance -https://www.netlify.com/blog/2020/03/05/feedback-ladders-how-we-encode-code-reviews-at-netlify/

Comment thread bin/chat-cli/src/app.rs Outdated
Comment on lines +23 to +24
/// Which kind of MLS conversation this is. `Dm` is a DirectV1 1:1 — no members
/// can be added; `Group` is an addable GroupV2 conversation.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Dust] The Actual ConversationType being used will change overtime. Listing them explicitly will result in the docs becoming out of date quickly. Consider removing.

Comment thread bin/chat-cli/src/app.rs Outdated
Comment on lines +25 to +29
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
pub enum ChatKind {
Dm,
Group,
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[!] There was a previous "ConvoClass" structure but I'm realizing it never landed in generic_client. We should eventually think about exposing this information so it is available for all clients.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you recommend for now? I think it would be good to do it now, I can do it in a separate small PR, let me know which approach would be ok, in this PR or another tiny PRs?

@jazzz jazzz Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given this code has no impact on developers I'm not picky about order.

I think it would be good to do it now

I'll defer to you, and your priorities, and workflow.

let me know which approach would be ok

In this particular case I would put it as a separate PR. It's something we want to be slightly more intentional about, and keeps the domains separate. Specifically with a dedicated PR description detailing motivations etc.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here is the PR #214

Comment thread bin/chat-cli/src/app.rs
Comment on lines -245 to +284
self.add_system_message("/connect <address> - Connect using an address");
self.add_system_message("/dm <address> - Start a direct (1:1) chat");

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Sand] This PR is tightly coupled with #205 . Short PR's are great, however its hard to see how these changes will all land together. Particularly with some unrelated lines being deleted in this PR.

In the future I don't have any issue reviewing tightly coupled items together in a single PR. Especially if the commits are clean.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a rebase issue, fixed now.

Comment thread bin/chat-cli/src/app.rs Outdated
Comment on lines +323 to +325
// First token is the (optional) group name; any remaining tokens
// are addresses to invite at creation. `/new` alone makes an empty
// group.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[?] Is there a functional reason to not force developers to create groups with a defined name?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it was solo based on it's a cli to make it easier to use. Will make it mandatory.

Comment thread bin/chat-cli/README.md Outdated

**Direct message (1:1):**

1. Alice types `/account` and sends Bob her address.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[!] There is a proposal to remove Alice and Bob from chat level documentation : https://github.com/logos-co/logos-lips/blob/master/docs/messaging/informational/raw/chat-cast.md -- Feedback welcome

@mchenani
mchenani force-pushed the mch/libchat-refactoring-account branch from 130a2d0 to 06d098f Compare August 14, 2026 16:42
Base automatically changed from mch/libchat-refactoring-account to main August 18, 2026 05:08
@mchenani
mchenani merged commit 409f076 into main Aug 19, 2026
6 checks passed
@mchenani
mchenani deleted the mch/libchat-refactoring-connect branch August 19, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants