jlcodes99/cockpit-tools · error
accounts.groups.error.notFound
accounts.groups.error.notFound
Error message
分组不存在
What it means
Guard in CodexAccountGroupModal.applyQuotaMinutes: after optimistically updating local group state, setCodexGroupQuotaAutoRefreshMinutes returned null/undefined, meaning the backend no longer has a group with that id (deleted elsewhere or stale local copy). The modal surfaces the i18n message accounts.groups.error.notFound ('分组不存在').
Source
Thrown at src/components/CodexAccountGroupModal.tsx:163
const applyQuotaMinutes = async (
group: CodexAccountGroup,
minutes: CodexGroupQuotaAutoRefreshMinutes,
) => {
const next = normalizeCodexGroupQuotaAutoRefreshMinutes(minutes);
setError(null);
setQuotaBusyId(group.id);
try {
setGroups((prev) =>
prev.map((item) =>
item.id === group.id
? { ...item, quotaAutoRefreshMinutes: next }
: item,
),
);
const updated = await setCodexGroupQuotaAutoRefreshMinutes(group.id, next);
if (!updated) {
throw new Error(t('accounts.groups.error.notFound', '分组不存在'));
}
setQuotaCustomModeId(null);
await onGroupsChanged();
} catch (err) {
console.error('Failed to update codex group quota refresh:', err);
await reload();
setError(t('accounts.groups.error.quotaRefreshFailed', {
error: String(err),
defaultValue: '更新额度刷新设置失败: {{error}}',
}));
} finally {
setQuotaBusyId(null);
}
};
const handleQuotaSelectChange = (
group: CodexAccountGroup,
value: string,View on GitHub (pinned to 1ed8b77992)
Solutions
- Refresh the group list so the deleted group disappears from the modal
- Recreate the group if its removal was unintended, then reapply the quota setting
- Avoid concurrent deletion while the quota editor is open
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/components/CodexAccountGroupModal.tsx:163 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of jlcodes99/cockpit-tools@1ed8b77992 (2026-09-05).
Data as JSON: /api/errors/b4cfbf6594b11b62.
Report an issue: GitHub.