perf(extensions): quiet runtime success logs - #545
Closed
JustYannicc wants to merge 1 commit into
Closed
Conversation
Collaborator
Author
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changed
__SUPERCMD_EXTENSION_RUNTIME_DEBUG, for verbose extension-loader diagnostics.toStringavoidance.Why
Successful extension/menu-bar/background bundle evaluation currently emits hot-path diagnostics and stringifies exported functions during normal operation. That adds console noise and avoidable work on extension loads and remounts.
Compatibility impact
No fakeRequire module resolution, wrapper semantics, timer cleanup, or Raycast shim exports changed. Verbose success diagnostics remain available by setting
globalThis.__SUPERCMD_EXTENSION_RUNTIME_DEBUG = true; warnings and errors still log by default.How tested
node --test scripts/test-extension-wrapper-cache.mjs scripts/test-extension-sync-facade.mjs scripts/test-background-no-view-dedupe.mjs scripts/test-extension-runtime-logging.mjson the integration stack before clean-branch extraction: 15 passing tests.mainyet.mcp__lsp.diagnosticsforsrc/renderer/src/ExtensionView.tsx: no errors.Evidence from the logging harness:
[baseline] extension runtime success diagnostics: logs=4 exportedToStringCalls=1[after] extension runtime debug helper: defaultDebugCalls=0 enabledDebugCalls=1Stack validation
Draft while #530, #531, #532, #533, #534, and #535 are still pending. This PR branch is clean against upstream
mainand contains only the extension runtime logging fix.