Skip to content

fix(channel): support channel names that include numbers; legacy test names containing numbers may still appear#796

Merged
hazeone merged 1 commit intomainfrom
cursor/2-767f
Apr 8, 2026
Merged

fix(channel): support channel names that include numbers; legacy test names containing numbers may still appear#796
hazeone merged 1 commit intomainfrom
cursor/2-767f

Conversation

@hazeone
Copy link
Copy Markdown
Contributor

@hazeone hazeone commented Apr 8, 2026

This pull request contains changes generated by a Cursor Cloud Agent

Open in Web Open in Cursor 

… merge

Co-authored-by: Haze <hazeone@users.noreply.github.com>
@cursor
Copy link
Copy Markdown

cursor bot commented Apr 8, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@hazeone hazeone changed the title 频道账号2异常 fix(channel): support channel names that include numbers; legacy test names containing numbers may still appear Apr 8, 2026
@hazeone hazeone merged commit c1e165d into main Apr 8, 2026
5 checks passed
@hazeone hazeone deleted the cursor/2-767f branch April 8, 2026 10:39
Copy link
Copy Markdown
Contributor

@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: 6f121e771a

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

.map((account) => account.accountId)
.filter((accountId): accountId is string => typeof accountId === 'string' && accountId.trim().length > 0);
const runtimeAccountIds = runtimeAccounts.reduce<string[]>((acc, account) => {
const accountId = typeof account.accountId === 'string' ? account.accountId.trim() : '';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Badge Preserve account ID canonical form during runtime merge

Trimming account.accountId here changes the identifier used for downstream matching, but account IDs are not normalized on write (/api/channels/config passes body.accountId through, and saveChannelConfig stores it as-is). If an ID with surrounding whitespace exists (from API clients or existing config), this branch now converts it (e.g. ' foo ''foo'), so configuredAccountIdSet membership and the later runtimeAccounts.find(...) lookup no longer align with the stored/runtime key. That can surface duplicate/phantom accounts with incorrect configured/status fields instead of the real runtime snapshot.

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