-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[codex] Share safe URL diagnostics #3403
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
Closed
Closed
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
c60d2b1
Share redacted DPoP request targets
juliusmarminge 5270126
Share safe URL diagnostics
juliusmarminge 025fd6f
[codex] Redact agent awareness relay diagnostics (#3410)
juliusmarminge 6715d16
Structure advertised endpoint errors (#3289)
juliusmarminge c861bb8
[codex] add structured Electron shell errors (#3288)
juliusmarminge 1fc31fa
[codex] Structure browser target resolution errors (#3327)
juliusmarminge 1ea4c82
[codex] Structure web local API failures (#3338)
juliusmarminge cc21e54
[codex] Preserve mobile composer input failures (#3343)
juliusmarminge 77a8eb2
[codex] Structure mobile file-processing failures (#3287)
juliusmarminge a14abc6
[codex] Structure browser DPoP failures (#3277)
juliusmarminge f9cf047
[codex] Structure OTLP export diagnostics (#3407)
juliusmarminge 0dd6350
[codex] Structure update manifest failures (#3293)
juliusmarminge eb8c3f5
[codex] Structure ACP schema generator errors (#3362)
juliusmarminge 15bacdb
[codex] Structure Codex schema generator errors (#3354)
juliusmarminge 252622a
[codex] Structure relay environment connector errors (#3331)
juliusmarminge 65ed5d9
[codex] Structure web cloud-link failures (#3316)
juliusmarminge 7219177
[codex] Preserve client connection error causes (#3242)
juliusmarminge 96e4579
[codex] Structure connection persistence failures (#3255)
juliusmarminge 57cf316
fix: preserve catalog persistence stages
juliusmarminge babf6f4
[codex] Structure client RPC unavailable errors (#3260)
juliusmarminge d407d90
[codex] Preserve client connection preparation causes (#3267)
juliusmarminge 249a5ad
[codex] Structure mobile DPoP failures (#3307)
juliusmarminge 71c5fdc
[codex] Preserve supervisor unexpected causes (#3438)
juliusmarminge 973d3c1
[codex] Report preview action failures (#3351)
juliusmarminge ff76f76
[codex] Structure analytics batch delivery failures (#3311)
juliusmarminge 3b10968
Avoid sensitive persistence paths
juliusmarminge 2efb859
[codex] improve server auth error context (#3240)
juliusmarminge e4a440b
fix: preserve structured SSH cancellation errors
juliusmarminge 9e0c536
test: assert SSH cancellation cause chain
juliusmarminge a7d56b3
[codex] Structure mobile cloud-link failures (#3320)
juliusmarminge 8fd276f
fix: keep connection error messages structural
juliusmarminge 761be94
fix(desktop): preserve external-open IPC result
juliusmarminge 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,34 @@ | ||
| import { assert, describe, it } from "@effect/vitest"; | ||
| import * as Effect from "effect/Effect"; | ||
| import * as Layer from "effect/Layer"; | ||
| import * as Logger from "effect/Logger"; | ||
|
|
||
| import { openExternal } from "./window.ts"; | ||
| import * as ElectronShell from "../../electron/ElectronShell.ts"; | ||
|
|
||
| describe("window IPC", () => { | ||
| it.effect("returns false when Electron rejects an external URL", () => { | ||
| const url = "https://example.com/path"; | ||
| const error = new ElectronShell.ElectronShellOpenExternalError({ | ||
| urlHostname: "example.com", | ||
| urlLength: url.length, | ||
| urlProtocol: "https:", | ||
| cause: new Error("open failed"), | ||
| }); | ||
| const layer = Layer.mergeAll( | ||
| Layer.succeed( | ||
| ElectronShell.ElectronShell, | ||
| ElectronShell.ElectronShell.of({ | ||
| openExternal: () => Effect.fail(error), | ||
| copyText: () => Effect.void, | ||
| }), | ||
| ), | ||
| Logger.layer([], { mergeWithExisting: false }), | ||
| ); | ||
|
|
||
| return Effect.gen(function* () { | ||
| const opened = yield* openExternal.handler(url); | ||
| assert.equal(opened, false); | ||
| }).pipe(Effect.provide(layer)); | ||
| }); | ||
| }); |
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.
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.