Skip to content

fix(web): limit recent cases shown in launcher to 3 - #38

Merged
charpy4n6 merged 1 commit into
mainfrom
fix/limit-recent-cases
Sep 5, 2026
Merged

charpy4n6 merged 1 commit into
mainfrom
fix/limit-recent-cases

Conversation

@charpy4n6

@charpy4n6 charpy4n6 commented Sep 5, 2026 •

Copy link
Copy Markdown
Collaborator

recent_cases() gains an optional limit keyword; existing callers (and the test that asserts exact content) are unaffected since it defaults to unbounded. /api/recent and the needs_case branch of /api/context - the two endpoints that feed the launcher UI - now pass limit=3. The on-disk recent-cases store still keeps up to 12 entries; only what the launcher displays is capped.

Tested: pytest tests -q - 175 passed, 3 skipped, 3 pre-existing failures reproduced identically on a clean origin/main checkout, unrelated to this change. Built the frozen exe and smoke-tested --version.

🤖 Generated with Claude Code

recent_cases() gains an optional limit param; the launcher's two call
sites (/api/recent and the needs_case branch of /api/context) pass 3.
The on-disk store still keeps up to 12 recent entries - only what the
launcher displays is capped.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@charpy4n6
charpy4n6 merged commit 0867752 into main Sep 5, 2026
8 checks passed
@charpy4n6
charpy4n6 deleted the fix/limit-recent-cases branch September 5, 2026 22:20
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.

1 participant