Skip to content

Conversation

@tintinthong
Copy link
Contributor

No description provided.

@github-actions
Copy link

Host Test Results

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit 2a8c392.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2a8c392ee3

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +287 to +291
export interface CommandInputEvent extends BaseMatrixEvent {
content: {
// TODO: confirm whether this should be a serialized card type (e.g., SerializedFile)
// instead of generic JSON.
commandInput: Record<string, unknown>;

Choose a reason for hiding this comment

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

P2 Badge Add event type discriminator to CommandInputEvent

All other Matrix event interfaces include a type field, but CommandInputEvent does not. Because BaseMatrixEvent doesn’t define type, this makes MatrixEvent no longer guarantee a type discriminator and allows CommandInputEvent objects to be constructed without an event type. In practice, any code that emits a command-input event using this interface can omit the APP_BOXEL_COMMAND_INPUT_EVENT_TYPE, causing routing/filtering by event type to drop the command at runtime. Consider adding type: typeof APP_BOXEL_COMMAND_INPUT_EVENT_TYPE to keep the union discriminated and enforce valid events.

Useful? React with 👍 / 👎.

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