Skip to content

Conversation

@urmauur
Copy link
Member

@urmauur urmauur commented Aug 28, 2025

Describe Your Changes

This pull request updates how model compatibility errors are handled and displayed in the application. The main change is introducing a new 'GREY' status to indicate when the system cannot determine model compatibility, instead of treating errors as unsupported ('RED'). This status is now reflected both in the backend logic and the frontend UI, and the related tests have been updated accordingly.

Error handling and status logic:

  • The isModelSupported function now returns 'GREY' when an error occurs during compatibility checking, instead of 'RED'. The type signature is updated to include 'GREY'. [1] [2]
  • Tests in models.test.ts are updated to expect 'GREY' for error cases, ensuring consistency with the new status. [1] [2]

Frontend UI updates:

  • The ModelInfoHoverCard component now displays a message and a grey indicator when the status is 'GREY', informing the user that compatibility could not be determined.

Minor UI text adjustment:

  • The quantization label in ModelInfoHoverCard is clarified to show 'Default Quantization' for the default variant, improving user understanding.

Fixes Issues

Screenshot 2025-08-28 at 12 51 52
  • Closes #
  • Closes #

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

Important

Introduce 'GREY' status for model compatibility errors, updating backend logic, frontend UI, and tests.

  • Behavior:
    • isModelSupported now returns 'GREY' for errors, not 'RED', in models.ts.
    • Tests in models.test.ts updated to expect 'GREY' for error cases.
  • Frontend UI:
    • ModelInfoHoverCard shows a grey indicator and message for 'GREY' status.
  • UI Text:
    • Clarified quantization label to 'Default Quantization' in ModelInfoHoverCard.

This description was created by Ellipsis for 328d680. You can customize this summary. It will automatically update as commits are pushed.

@urmauur urmauur added this to the v0.6.9 milestone Aug 28, 2025
@urmauur urmauur self-assigned this Aug 28, 2025
@urmauur urmauur added this to Jan Aug 28, 2025
Copy link
Contributor

@qnixsynapse qnixsynapse left a comment

Choose a reason for hiding this comment

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

LGTM

@urmauur urmauur changed the title Fix/handle checking model gated fix: handle checking model gated Aug 28, 2025
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Caution

Changes requested ❌

Reviewed everything up to 85b614f in 2 minutes and 26 seconds. Click for details.
  • Reviewed 82 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 4 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. web-app/src/containers/ModelInfoHoverCard.tsx:82
  • Draft comment:
    Good implementation for the new GREY status branch with clear messaging. Ensure the UI color classes are consistent with other status indicators.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
2. web-app/src/containers/ModelInfoHoverCard.tsx:121
  • Draft comment:
    Text adjustment for quantization label (Default Quantization) is clearer now.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
3. web-app/src/services/__tests__/models.test.ts:927
  • Draft comment:
    Test updated to expect 'GREY' when an error occurs; this aligns with the new error status.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
4. web-app/src/services/models.ts:611
  • Draft comment:
    Changing the catch block to return 'GREY' in case of errors correctly reflects the new status semantics.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None

Workflow ID: wflow_JFtLuDcfQ9L6jtqV

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link
Contributor

@dinhlongviolin1 dinhlongviolin1 left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions
Copy link
Contributor

github-actions bot commented Aug 28, 2025

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! 👍

Reviewed 11a7bf7 in 48 seconds. Click for details.
  • Reviewed 12 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. web-app/src/services/models.ts:600
  • Draft comment:
    Removed console.log used for debugging. This cleanup helps avoid polluting production logs.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None

Workflow ID: wflow_kAcqcDbe4D36lJct

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! 👍

Reviewed 5257a24 in 1 minute and 32 seconds. Click for details.
  • Reviewed 22 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 3 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. web-app/src/containers/ModelSupportStatus.tsx:88
  • Draft comment:
    On error, consider returning 'GREY' (not null) so that compatibility errors are visibly indicated per the new logic.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
2. web-app/src/containers/ModelSupportStatus.tsx:105
  • Draft comment:
    Add an explicit case for 'GREY' in getStatusColor to assign a proper grey color instead of falling to the default.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
3. web-app/src/containers/ModelSupportStatus.tsx:121
  • Draft comment:
    Include an explicit 'GREY' case in getStatusTooltip with a clear message (e.g., 'Compatibility unknown') instead of defaulting to 'Unknown'.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.

Workflow ID: wflow_mnaVZsguGM9Cx2Fr

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! 👍

Reviewed 328d680 in 1 minute and 40 seconds. Click for details.
  • Reviewed 13 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. web-app/src/routes/hub/$modelId.tsx:66
  • Draft comment:
    Union type updated: 'GREY' is now included in modelSupportStatus. Ensure that error handling (e.g., in checkModelSupport's catch block) is updated to assign 'GREY' for indeterminate compatibility errors to stay consistent.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 10% vs. threshold = 50% The comment is speculative - it suggests that error handling "should" be updated to use GREY, but provides no evidence that this is actually needed. The existing error handling using RED seems intentional. The comment is asking the author to "ensure" something rather than pointing out a clear issue. This violates the rule about not asking authors to verify things. Maybe GREY is intended to be used for error cases and RED is being used incorrectly? Maybe there's context in other files about when GREY should be used? Without clear evidence that GREY should be used for errors, this is just speculation. The existing code explicitly chooses to use RED for errors, and we should assume that's intentional unless proven otherwise. Delete this comment. It's speculative and asks the author to verify something rather than pointing out a clear issue that needs fixing.

Workflow ID: wflow_CCtZ2dxMAn3e26D0

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

@Minh141120
Copy link
Member

LGTM!
image

@urmauur urmauur merged commit 7a65747 into release/v0.6.9 Aug 28, 2025
16 checks passed
@urmauur urmauur deleted the fix/handle-checking-model-gated branch August 28, 2025 06:58
@github-project-automation github-project-automation bot moved this to QA in Jan Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants