Traceback "more" enhancements #6165

Closed
opened 2023-05-18 22:31:18 +02:00 by RheingoldRiver · 5 comments
RheingoldRiver commented 2023-05-18 22:31:18 +02:00 (Migrated from github.com)

What component of Red (cog, command, API) would you like to see improvements on?

traceback

Describe the enhancement you're suggesting.

Right now, the default UX feels pretty clunky. The feature I proposed was to stop messages from flooding the chat, and it's certainly doing that, but it's also stopping the user from gracefully seeing all messages at once. I'd propose the following enhancements:

  1. Change the default number of pages to 2 at a time instead of 1
  2. Add a keyword response all
  3. Tell the user where they can go to configure the number of pages at a time in the response. The language could be:
There are still {} messages remaining. Type `more` to continue, `all` to finish, or `file` to upload all contents as a file. Change pagination volume with `[p]set tracebackpagination`.

Of course, replace my fake command with the actual command that changes 2 to the user-set pagination volume.

Anything else?

I really appreciate that you take the time to implement my UX suggestions, and I feel really bad that this one didn't turn out great in its first implementation. I think with these improvements it'll be a much better experience though.

### What component of Red (cog, command, API) would you like to see improvements on? traceback ### Describe the enhancement you're suggesting. Right now, the default UX feels pretty clunky. The feature I proposed was to stop messages from flooding the chat, and it's certainly doing that, but it's also stopping the user from gracefully seeing all messages at once. I'd propose the following enhancements: 1. Change the default number of pages to 2 at a time instead of 1 2. Add a keyword response `all` 3. Tell the user where they can go to configure the number of pages at a time in the response. The language could be: ``` There are still {} messages remaining. Type `more` to continue, `all` to finish, or `file` to upload all contents as a file. Change pagination volume with `[p]set tracebackpagination`. ``` Of course, replace my fake command with the actual command that changes 2 to the user-set pagination volume. ### Anything else? I really appreciate that you take the time to implement my UX suggestions, and I feel really bad that this one didn't turn out great in its first implementation. I think with these improvements it'll be a much better experience though.
RheingoldRiver commented 2023-05-19 01:34:53 +02:00 (Migrated from github.com)

Edited, I think "volume" is a better word than "speed" for the size of each payload

Edited, I think "volume" is a better word than "speed" for the size of each payload
Flame442 commented 2023-09-27 23:32:54 +02:00 (Migrated from github.com)

I believe traceback is currently just using the Context.send_interactive helper Red provides. This helper is intended to be used in cases where the bot explicitly should not be sending all of its messages back to back, as that would lead to API spam. For that reason, I don't think all will be added as an option for sending the remaining N messages all at once as messages.

As for allowing the number of pages sent at a time to be configured (and potentially changing the default of that setting to 2), currently there are 2 send events (the actual content + the "There are still x messages remaining" message) and 1 delete event happening every time more is said, and increasing that (or allowing it to be increased) would be getting very close to API spam. Additionally, it would be a setting that affects all cases of send_interactive, and I'm not sure how that would affect non-traceback parts of the codebase.

There is currently the file option (added with #5902 in 3.5) which outputs all of the remaining content as a file. On some platforms, the file can be previewed from within discord, however there are some platforms where the file would have to be downloaded and inspected. This is the best workaround Discord provides for sending bulk amounts of data.

I believe `traceback` is currently just using the `Context.send_interactive` helper Red provides. This helper is intended to be used in cases where the bot explicitly should not be sending all of its messages back to back, as that would lead to API spam. For that reason, I don't think `all` will be added as an option for sending the remaining `N` messages all at once as messages. As for allowing the number of pages sent at a time to be configured (and potentially changing the default of that setting to 2), currently there are 2 `send` events (the actual content + the "There are still x messages remaining" message) and 1 `delete` event happening every time `more` is said, and increasing that (or allowing it to be increased) would be getting very close to API spam. Additionally, it would be a setting that affects all cases of `send_interactive`, and I'm not sure how that would affect non-traceback parts of the codebase. There is currently the `file` option (added with #5902 in 3.5) which outputs all of the remaining content as a file. On some platforms, the file can be previewed from within discord, however there are some platforms where the file would have to be downloaded and inspected. This is the best workaround Discord provides for sending bulk amounts of data.
RheingoldRiver commented 2023-09-27 23:42:58 +02:00 (Migrated from github.com)

For that reason, I don't think all will be added as an option for sending the remaining N messages all at once as messages.

Wouldn't it make sense for send_interactive to always offer all ? I suggested it for traceback specifically because that's the one that I use the most, but I can't imagine that ever being an unwanted option any time there's a send_interactive response.

Regarding the number of messages change, that makes sense, although one option could be to clamp the length of the most recent message a bit and include "type more to see more" in the body of the last message sent. It would add a bit of complexity but if that allows you to get up to say 3 messages at once instead of 1 (so config is just 1-3) it would help UX a lot imo.

> For that reason, I don't think all will be added as an option for sending the remaining N messages all at once as messages. Wouldn't it make sense for `send_interactive` to always offer `all` ? I suggested it for traceback specifically because that's the one that I use the most, but I can't imagine that ever being an unwanted option any time there's a `send_interactive` response. Regarding the number of messages change, that makes sense, although one option could be to clamp the length of the most recent message a bit and include "type `more` to see more" in the body of the last message sent. It would add a bit of complexity but if that allows you to get up to say 3 messages at once instead of 1 (so config is just 1-3) it would help UX a lot imo.
Flame442 commented 2023-09-27 23:50:51 +02:00 (Migrated from github.com)

While I can understand the user experience reasoning for adding either of these two features, I'm not sure if the API is really built for either to be a good option. While I'm not ruling out accepting either of them, I personally don't think the benefit to users outweighs the fact that they allow users to override the cog creator's intention of using this method to prevent API spam, somewhat degrading the method's purpose.

While I can understand the user experience reasoning for adding either of these two features, I'm not sure if the API is really built for either to be a good option. While I'm not ruling out accepting either of them, I personally don't think the benefit to users outweighs the fact that they allow users to override the cog creator's intention of using this method to prevent API spam, somewhat degrading the method's purpose.
Owner

Offene Diskussion bzw. Feature-Wunsch mit geringem Nutzen im Verhältnis zum Aufwand (oder Nischenfall), der seit Langem ohne Ergebnis offen ist. Ich schließe das Issue; bei konkretem Bedarf kann es gern wieder geöffnet werden.


Generated by Claude Code

Offene Diskussion bzw. Feature-Wunsch mit geringem Nutzen im Verhältnis zum Aufwand (oder Nischenfall), der seit Langem ohne Ergebnis offen ist. Ich schließe das Issue; bei konkretem Bedarf kann es gern wieder geöffnet werden. --- _Generated by [Claude Code](https://claude.ai/code)_
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#6165
No description provided.