-
Notifications
You must be signed in to change notification settings - Fork 0
Workspaces 5/10: hold derived events in the transfer gap; drift cleanup #618
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
+326
−43
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
10d13e7
Hold a transferring PTY's derived events until its replay
nedtwigg ebb6caf
Clean the drift the multi-window review found
nedtwigg dc4b8f6
Hold only protocol events across a transfer; rebuild alerts from the …
nedtwigg 29a1aba
Merge workspaces-dor into workspaces-harden
nedtwigg 969ea54
Merge branch 'workspaces-dor' into workspaces-harden
nedtwigg a323675
Merge branch 'workspaces-dor' into workspaces-harden
nedtwigg 302b1f7
Merge branch 'workspaces-dor' into workspaces-harden
nedtwigg d0a80f4
Seed transferred alerts before replay rebuilds live watch state
nedtwigg 2d2dc7a
Exercise the persisted-alert branch in the replay ordering regression
nedtwigg 8f6484f
Merge branch 'workspaces-dor' into workspaces-harden
nedtwigg 32ee2c0
Merge branch 'workspaces-dor' into workspaces-harden
nedtwigg e0f73c2
Merge branch 'workspaces-dor' into workspaces-harden
nedtwigg 4a2e75f
Merge branch 'workspaces-dor' into workspaces-harden
nedtwigg 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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| // The sidecar's entry wires pty-core to the bundles it requires. These are | ||
| // source checks, because loading main.js needs the built bundles and a live | ||
| // stdin; each pins one injection whose absence fails silently at runtime. | ||
| const { test } = require('node:test'); | ||
| const assert = require('node:assert'); | ||
| const { readFileSync } = require('node:fs'); | ||
| const path = require('node:path'); | ||
|
|
||
| const source = readFileSync(path.join(__dirname, 'main.js'), 'utf8'); | ||
|
|
||
| test('pty-core is created with the shared sliceSince, so recovery capture reads a buffer', () => { | ||
| // Without it `outputSince` answers '' and `captureAgentRecovery` records | ||
| // nothing, with no error anywhere (pty-core.js -> outputSince). | ||
| assert.match(source, /\{\s*captureAgentRecovery,\s*createRecoveryStore,\s*sliceSince\s*\}\s*=\s*require\('\.\/recovery\.cjs'\)/); | ||
| assert.match(source, /nodePty,\s*\{\s*replay:\s*true,\s*sliceSince\s*\}\)/); | ||
| }); | ||
|
|
||
| test('recovery capture and the record take are answered from pty-core marks', () => { | ||
| assert.match(source, /receivedChars:\s*\(id\)\s*=>\s*mgr\.receivedChars\(id\)/); | ||
| assert.match(source, /outputSince:\s*\(id,\s*mark\)\s*=>\s*mgr\.outputSince\(id,\s*mark\)/); | ||
| }); |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.