-
Notifications
You must be signed in to change notification settings - Fork 0
Preserve incremental review log updates #83
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
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
8e3ec41
fix(mcp): return complete review results
lynnswap d7acdc5
fix(mcp): omit logs from review start results
lynnswap 45b64f1
fix(review-log): deduplicate review output messages
lynnswap 2503b7a
fix(mcp): trim review finding payloads
lynnswap 65b86df
build(package): pin CodexKit fallback revision
lynnswap cf78964
fix(review): stabilize review result handling
lynnswap 044e706
fix(review-ui): preserve incremental log updates
lynnswap 828dade
fix(review-ui): detect same-length log replacements
lynnswap e7eac9e
fix(review): preserve completion response contracts
lynnswap c2b6caf
fix(review-ui): make the log document own inter-block paragraph bound…
lynnswap 537a9e4
fix(review-ui): consume reasoning mirror payloads as pairs
lynnswap cd82a77
fix(review): pin inline delivery for prepared review restarts
lynnswap b5580ac
fix(mcp): import CodexReviewKit for the run ID argument helper
lynnswap 4c79ed5
fix(review-ui): prefer nested item kind when decoding reasoning payloads
lynnswap 9a37785
fix(review-ui): keep raw command output in the source document
lynnswap bf3a655
fix(review-ui): apply cross-revision replacements after skipped renders
lynnswap 0bf7d4a
build(package): commit the remote CodexKit resolution
lynnswap 43b2d58
fix
lynnswap 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,3 +11,4 @@ DerivedData/ | |
| .swiftpm/xcode/xcuserdata/ | ||
| .netrc | ||
| *.profraw | ||
| /dependencies | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,44 @@ | ||
| import CodexReviewKit | ||
| import MCP | ||
|
|
||
| enum ReviewRunIDArgument { | ||
| static let acceptedNames = ["runId", "runID", "jobId", "jobID"] | ||
| static let requiredDescription = acceptedNames.joined(separator: "/") | ||
|
|
||
| static func properties() -> [String: Value] { | ||
| Dictionary(uniqueKeysWithValues: acceptedNames.map { name in | ||
| (name, Value.object(["type": .string("string")])) | ||
| }) | ||
| } | ||
|
|
||
| static func requiredAnyOf() -> Value { | ||
| .array(acceptedNames.map { name in | ||
| .object(["required": .array([.string(name)])]) | ||
| }) | ||
| } | ||
|
|
||
| static func optionalValue(in arguments: [String: Value]) throws -> String? { | ||
| let provided = acceptedNames.compactMap { name -> (name: String, value: String)? in | ||
| guard let value = arguments[name]?.stringValue?.nilIfEmpty else { | ||
| return nil | ||
| } | ||
| return (name, value) | ||
| } | ||
| guard let first = provided.first else { | ||
| return nil | ||
| } | ||
| if let conflict = provided.first(where: { $0.value != first.value }) { | ||
| throw MCPProtocolServerError.invalidArgument( | ||
| "Conflicting run identifier arguments: \(first.name) and \(conflict.name)." | ||
| ) | ||
| } | ||
| return first.value | ||
| } | ||
|
|
||
| static func requiredValue(in arguments: [String: Value]) throws -> String { | ||
| guard let runID = try optionalValue(in: arguments) else { | ||
| throw MCPProtocolServerError.missingArgument(requiredDescription) | ||
| } | ||
| return runID | ||
| } | ||
| } |
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.