Skip to content

Remove duplicate gateway prompt and skill discovery before runs - #94

Merged
lukebuehler merged 1 commit into
mainfrom
fix/single-pre-run-context-refresh
Sep 12, 2026
Merged

lukebuehler merged 1 commit into
mainfrom
fix/single-pre-run-context-refresh

Conversation

@lukebuehler

Copy link
Copy Markdown
Contributor

Starting a run on an idle session refreshed prompts and catalogs in the gateway and then repeated discovery in the workflow before admission. With environment sources enabled, both passes opened remote connections and scanned sources, delaying message acceptance.

Load session state without discovery in the gateway run-start path. The workflow remains responsible for refreshing context before idle run admission. Preserve MCP tool-policy reconciliation and refreshes for session setup, configuration changes, and explicit skill reads.

Extend the existing workflow boundary regressions to cover prompt and skill discovery before any entries have been published, and document where admission refresh happens.

Validation: temporal-server and temporal-workflow library tests; cargo fmt --all --check; git diff --check. Live infrastructure tests were not run.

@lukebuehler
lukebuehler enabled auto-merge (squash) September 12, 2026 17:47
@lukebuehler
lukebuehler merged commit c1f5545 into main Sep 12, 2026
5 checks passed
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