Repository navigation
fix(codex): refresh managed credentials during active turns #17920
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
luke2x
wants to merge
9
commits into
pingdotgg:main
from
luke2x:fix/codex-active-token-refresh-17445
+487
−32
Closed
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
65347e0
fix(codex): renew managed credentials in active processes
luke2x cf9c097
Merge branch 'main' into fix/codex-active-token-refresh-17445
luke2x fd8db67
fix(codex): renew managed credentials through a T3 subcommand
luke2x da059ac
Update CodexManagedTokenSource.ts
luke2x 1c2f341
fix(server): restore managed token bridge error handler syntax
luke2x 1025e41
fix(codex): bind refreshed credentials to launch accounts
luke2x 7c89726
fix(codex): retire replaced managed credential bridges
luke2x 26436da
fix(codex): preserve active bridges after failed sign-in
luke2x 51e5042
Merge branch 'main' into fix/codex-active-token-refresh-17445
luke2x 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import * as Effect from "effect/Effect"; | ||
| import { Command } from "effect/cli"; | ||
|
|
||
| import { | ||
| codexManagedTokenCommandName, | ||
| runCodexManagedTokenCommand, | ||
| } from "../provider/codexManagedTokenCommand.ts"; | ||
|
|
||
| /** | ||
| * `t3 codex-managed-token` — internal credential command managed Codex runs to | ||
| * renew its bearer from the provider's loopback bridge. | ||
| * | ||
| * Real invocations dispatch through the bin.ts fast path before the CLI graph | ||
| * loads; this definition keeps the command wired for anything that drives the | ||
| * full CLI programmatically. | ||
| */ | ||
| export const codexManagedTokenCommand = Command.make(codexManagedTokenCommandName).pipe( | ||
| Command.withDescription("Print the current managed Codex credential for Codex."), | ||
| Command.unlisted, | ||
| Command.withHandler(() => Effect.promise(() => runCodexManagedTokenCommand())), | ||
| ); |
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
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.