Skip to content

refactor(picker): share session json request flow#246

Merged
barrettruth merged 3 commits intomainfrom
cleanup/utility-modules
Apr 13, 2026
Merged

refactor(picker): share session json request flow#246
barrettruth merged 3 commits intomainfrom
cleanup/utility-modules

Conversation

@barrettruth
Copy link
Copy Markdown
Owner

Problem

forge.picker.session handles a fair amount of async request and invalidation logic, but its JSON request flow is duplicated between prefetch and picker-open paths. The module also has very little direct unit coverage, which makes it harder to refactor safely when picker behavior changes.

Solution

Extract the shared JSON request lifecycle into one helper and keep the stale-request handling behavior explicit at each call site. Add focused unit tests for decode behavior, prefetch skipping and invalidation, cached opens, streamed picker success and failure, and stale streamed requests.

@barrettruth barrettruth merged commit 1fa7a5f into main Apr 13, 2026
8 checks passed
@barrettruth barrettruth deleted the cleanup/utility-modules branch April 13, 2026 22:47
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