Repository navigation
Conversation
…overy that tries every address A reveal's text is now a transient inline hint (an after-line decoration and a hover) that ends on an edit, on the caret leaving the range, on Esc or on the next reveal; nothing is written to .code-notes/. bridge.json may list several addresses in `urls`; the client dials each in order, keeps the one that connected and retries all of them with the existing backoff after a drop.
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.
Two improvements to the bridge (docs/bridge.md). Stacked on the bridge PR (
cnb/bridge).reveal {file, start, end, text}lights the range and shows the text as a transient inline hint (an after-line decoration plus a hover on the lines) instead of a comment thread. It ends on an edit in the file, on the caret leaving the lines, on Esc, or on the next reveal. Nothing is written to.code-notes/.bridge.jsonmay list several addresses inurls(in addition tourl). The client dials each in order, keeps the one that connected, and after a drop waits the existing backoff and tries that one first, then the others. This helps when a controller is reachable on several addresses, e.g. from a WSL guest.Version 0.27.1; CHANGELOG.md updated.
Acceptance criteria
src/core/bridge/hint.ts(lifecycle),src/bridge/hint.ts(decoration + hover), Esc keybinding whencodeNotes.explanationShown;src/bridge/callout.tsremoved. Unit:test/bridgeHint.test.ts,test/keybindings.test.ts. Integration (added, not run here):test/integration/main/bridge.tsurlsin bridge.json, tried in order, keep the one that connected, retry all with backoff; documentedsrc/core/bridge/discovery.ts,src/core/bridge/client.ts,docs/bridge.md. Unit:test/bridgeClient.test.ts(fake server on the second address only, preferred-first after a drop, one wait per round, silent address timed out),test/bridgeDiscovery.test.ts.request.json, commands and existing tests keep workingManual checks
npm run test:integration; it is not part of this gate). Then send a reveal with text and check the hint in a light and a dark theme, and in a narrow editor (the label is one line, at most 120 characters).Deviations
/proc/net/route(src/core/bridge/wslHost.ts,src/bridge/machine.ts). That address is the Windows host, so the token never leaves the computer. No other non-loopback address is accepted.