-
Notifications
You must be signed in to change notification settings - Fork 115
fix(rust): thread subc.connection_file to the transform transport #376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ualtinok
merged 1 commit into
cortexkit:master
from
iceteaSA:fix/subc-connection-file-threading
Aug 28, 2026
+8
−2
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With a non-default
subc.connection_file, the changed transform transports reach the configured daemon whilewakePlaneStatusstill probes the default path, so the daemon's wake-plane ownership is not recognized and smart-note checks continue running locally.Knowledge Base Used: OpenCode plugin runtime
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified from source — this is real, and it's a third site I missed.
wake-plane.ts:27-29:Same hardcoded default the transport had, and unlike the transport it takes no override parameter at all. So with a non-default
subc.connection_filethe probe hits a path that doesn't exist,probeWakePlaneCatalogfails, andwakePlaneStatus()returnsunknown→ fail-open → standalone smart-note evaluation keeps running even when the fleet's wake plane owns it. Exactly as described.I have not folded it into this PR, and the reason is a design call that belongs to you rather than scope-avoidance:
wakePlaneStatus()takes no arguments and has three callers —tools/ctx-note/tools.ts:295,smart-notes/runner.ts:54,dreamer/evaluate-smart-notes.ts:100— none of which carry plugin config today. Options:pluginConfigis in scope, mirroring the existing swappablecatalogProbe/nowseams in__wakePlaneTest. ~6 lines, fits the module's shape, adds mutable module state.resolveSubcConnectionFile(config)consumed by both the transport and the wake plane.I'd lean (3) as the durable fix: the root problem is that the default path is spelled out in two places and the config value has no single resolution point, which is exactly how this recurs a fourth time. But that's a wider blast radius than a fix PR should decide on its own.
Happy to do any of them — say which and I'll push it here, or open a separate PR if you'd rather keep this one narrow.
Severity note for triage: this one is fail-open (smart notes keep evaluating locally — duplicated work, not lost work), whereas the transform-lane bug this PR fixes was effectively fail-shut: zero materializations, empty sidebar. Same defect class, different urgency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for verifying the third site. I agree this is real, but it should be a separate PR to keep this fix focused. For that PR, use option 3: introduce a shared
resolveSubcConnectionFile(config)(or equivalent) and make both the transport and wake-plane paths consume it. Thread the resolved value through the three wake-plane callers rather than adding module-level mutable state. This removes the duplicated default-path logic while keeping the current transform fix narrowly scoped.