From f88ad8e78198302f68ee0b420075d704ab01d8ff Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Fri, 9 Jan 2026 00:18:35 -0500 Subject: [PATCH 1/2] fix(doctor): use dynamic profile discovery for delegation check Replace hardcoded ['glm', 'kimi'] list with DelegationValidator.getReadyProfiles() to detect all configured *.settings.json profiles including mm, or1, g7, etc. --- src/management/checks/profile-check.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/management/checks/profile-check.ts b/src/management/checks/profile-check.ts index 7d80a4df..e29a0143 100644 --- a/src/management/checks/profile-check.ts +++ b/src/management/checks/profile-check.ts @@ -193,16 +193,9 @@ export class DelegationChecker implements IHealthChecker { return; } - // Check profile validity using DelegationValidator + // Check profile validity using DelegationValidator (dynamic discovery) const { DelegationValidator } = require('../../utils/delegation-validator'); - const readyProfiles: string[] = []; - - for (const profile of ['glm', 'kimi']) { - const validation = DelegationValidator.validate(profile); - if (validation.valid) { - readyProfiles.push(profile); - } - } + const readyProfiles = DelegationValidator.getReadyProfiles(); if (readyProfiles.length === 0) { spinner.warn(); From ce70617ee94645399ba05af581240a696ca9cfed Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Fri, 9 Jan 2026 01:05:37 -0500 Subject: [PATCH 2/2] fix(ci): exclude bot comments from triggering AI review Bot progress comments were triggering new workflow runs, which cancelled in-progress reviews due to concurrency group. Added check for github.event.comment.user.type != 'Bot'. --- .github/workflows/ai-review.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml index 62a088e6..7ba104ef 100644 --- a/.github/workflows/ai-review.yml +++ b/.github/workflows/ai-review.yml @@ -38,13 +38,14 @@ jobs: # Conditions: # - PR event: only on opened (not synchronize to avoid cancel-on-push) - # - Comment event: only if it's a PR and contains /review + # - Comment event: only if it's a PR, contains /review, and NOT from a bot if: > github.event_name == 'pull_request_target' || github.event_name == 'workflow_dispatch' || (github.event_name == 'issue_comment' && github.event.issue.pull_request && - contains(github.event.comment.body, '/review')) + contains(github.event.comment.body, '/review') && + github.event.comment.user.type != 'Bot') # CLIProxy environment for model routing env: