From 3554594d8d9327885a1d59348e3b85f718e21bbb Mon Sep 17 00:00:00 2001 From: Dave Date: Sat, 21 Mar 2026 12:01:24 +0000 Subject: [PATCH] storkit: done 90_story_fetch_real_context_window_size_from_anthropic_models_api --- ...ase_the_single_entry_point_for_releases.md | 20 ------------------ ...t_window_size_from_anthropic_models_api.md | 21 +++++++++++++++++++ 2 files changed, 21 insertions(+), 20 deletions(-) delete mode 100644 .storkit/work/1_backlog/358_story_remove_makefile_and_make_script_release_the_single_entry_point_for_releases.md create mode 100644 .storkit/work/5_done/90_story_fetch_real_context_window_size_from_anthropic_models_api.md diff --git a/.storkit/work/1_backlog/358_story_remove_makefile_and_make_script_release_the_single_entry_point_for_releases.md b/.storkit/work/1_backlog/358_story_remove_makefile_and_make_script_release_the_single_entry_point_for_releases.md deleted file mode 100644 index fc5caec..0000000 --- a/.storkit/work/1_backlog/358_story_remove_makefile_and_make_script_release_the_single_entry_point_for_releases.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: "Remove Makefile and make script/release the single entry point for releases" ---- - -# Story 358: Remove Makefile and make script/release the single entry point for releases - -## User Story - -As a ..., I want ..., so that ... - -## Acceptance Criteria - -- [ ] Makefile is deleted -- [ ] script/release requires a version argument and prints usage if missing -- [ ] script/release still builds macOS and Linux binaries, bumps versions, generates changelog, tags, and publishes to Gitea -- [ ] No dependency on make - -## Out of Scope - -- TBD diff --git a/.storkit/work/5_done/90_story_fetch_real_context_window_size_from_anthropic_models_api.md b/.storkit/work/5_done/90_story_fetch_real_context_window_size_from_anthropic_models_api.md new file mode 100644 index 0000000..e7800e4 --- /dev/null +++ b/.storkit/work/5_done/90_story_fetch_real_context_window_size_from_anthropic_models_api.md @@ -0,0 +1,21 @@ +--- +name: "Fetch real context window size from Anthropic models API" +--- + +# Story 90: Fetch real context window size from Anthropic models API + +## User Story + +As a user chatting with a Claude model, I want the context remaining indicator to show the actual context window size for the selected model (fetched from the Anthropic API) instead of a hardcoded value, so that the indicator is accurate across all current and future models. + +## Acceptance Criteria + +- [ ] Backend AnthropicModelInfo struct deserializes the context_window field from the Anthropic /v1/models response +- [ ] Backend /anthropic/models endpoint returns both model ID and context window size to the frontend +- [ ] Frontend uses the real context window size from the API response instead of the hardcoded getContextWindowSize map for Anthropic models +- [ ] Context indicator in ChatHeader displays the correct percentage based on the real context window size +- [ ] Hardcoded fallback remains for Ollama/local models that don't provide context window metadata + +## Out of Scope + +- TBD