fix(web): populate model select boxes from the configured catalog #106
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_shrimp!106
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "integration_fix_model_select_boxes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The model select boxes in the web UI suggested models from a hardcoded six-entry list, so they went stale whenever the operator changed the

models:catalog inshrimp.yml. The backend now exposes the actually-configured catalog and the UI populates its model suggestions from it.Related Issue
Closes #105
Changes
crates/hero_shrimp_server/src/rpc/methods/admin.rs:config.getnow emits amodelsarray (alias,tier,ctx,caps) fromhero_shrimp_runtime::global_catalog(), sorted alphabetically; empty when no catalog is loaded.crates/hero_shrimp_server/src/rpc/jsonrpc/tests/chunk_2.rs: new testconfig_get_includes_model_catalog.crates/hero_shrimp_web/ui/src/store.ts: new sharedconfiguredModelssignal populated inloadConfig(); refreshed at boot and after every settings save.crates/hero_shrimp_web/ui/src/components/SettingsModal.tsx: per-phase model datalist populated from the configured catalog; the old hardcoded list kept only asFALLBACK_MODELS.crates/hero_shrimp_web/ui/src/components/CrewPage.tsx: hire-modal Model field gains the same configured-model suggestions via acrew-known-modelsdatalist.crates/hero_shrimp_web/static/: rebuilt UI bundle (app.D5h1qBfB.js).Free-text
provider/model[@backend]entry remains valid everywhere; inputs stay datalist-backed combo boxes.Test Results
cargo test -p hero_shrimp_server: 308 total, 305 passed, 0 failed, 3 ignored (pre-existing ignored doc-tests).a022f916a8toa9da576b1a