[Bug] Aside aggregate state reports stale when unselected profiles are absent
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- backend
Research direction
Start with src/integrations/aside-profiles.ts and inspect how aggregateState receives profile states and enabled status. Reproduce the reported case with one enabled current profile and two disabled absent profiles; check existing tests for aggregation behavior. Done when disabled absent profiles do not make the aggregate stale, while an enabled outdated profile still does.
Written by the indexing model from the issue text.
Description
Summary
The Aside card on the Integrations Overview shows 업데이트 필요 (stale) permanently whenever only some Aside profiles are enabled, even when every enabled profile is current.
Observed on ocx 2.99.0; same code on origin/dev (2.100.0).
Evidence
GET /api/client-integrations, aside aggregate:
state: "stale", enabledCount: 1, appliedCount: 1, total: 3
profile 0 current enabled=true
profile 1 absent enabled=false
profile 2 absent enabled=false
Cause
src/integrations/aside-profiles.ts:
function aggregateState(states) {
if (states.includes("unsafe")) return "unsafe";
if (states.includes("conflict")) return "conflict";
if (states.every(s => s === "absent")) return "absent";
return states.every(s => s === "current") ? "current" : "stale";
}
A mix of current + intentionally-unselected absent falls through to stale. Profiles the user deliberately left off are counted as needing an update.
Suggested fix
Aggregate over enabled/selected profiles only (or treat absent on a not-enabled profile as neutral), so current + absent(disabled) reports current. Keep stale for an enabled profile whose block is outdated.
- Dominant language
- TypeScript
- Stars
- 16.9k
- Forks
- 1.3k
- Avg merge
- 23h
- Merged PRs (30d)
- 687
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lidge-jun/opencodex
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
bug gui
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
lidge-jun/opencodex#8344 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
[Bug]: Claude account rows no longer show the email (since #8055), so "Account 1, 2, 3" cannot be told apartPossibly taken @lidge-jun claimed this today. Openaccount-pool bug gui
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
lidge-jun/opencodex#8286 · 5 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
enhancement provider streaming
Difficulty 4/5 3-5 days Newbie friendliness 48/100
lidge-jun/opencodex#8363 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
cli platform service
Difficulty 3/5 1-2 days Newbie friendliness 72/100
Maintainers usually reply within 1 day
All issues in lidge-jun/opencodex
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
backnotprop/plannotator#2914 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/vscode-containers#655 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
dsh-tauri-desk/deepseek-harness-desktop#1477 · 1 comment ·
-
[docs] RELEASE.md: wrong branch name, no check that the prepare PR merged with the right subject, manual publish stepPossibly taken @albertteoh claimed this today. Opendocumentation
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
jaegertracing/jaeger-ui#4739 ·
Maintainers usually reply within 1 day