pi-web
pi-web copied to clipboard
Add regression coverage for model configuration and session lifecycle
Problem
Pi Web has important stateful behavior around model configuration, authentication, cached agent sessions, and session loading, but these flows currently have little automated regression coverage.
Suggested coverage
- Saving
models.jsoninvalidates the model-list cache. - Updating or removing a provider API key updates authentication status.
- An existing session can still be opened after model configuration changes.
- Model configuration writes do not leave a partially written
models.json. - Failed prompt requests expose a recoverable UI state.
Goal
Add a small, focused test setup and start with coverage for these high-risk model/session flows. The exact test framework can follow the maintainers' preferred approach.
fixed in 5158faf81e35270e3c008f43e99f4bd2ff544850