forked from pingdotgg/t3code
-
Notifications
You must be signed in to change notification settings - Fork 0
sync: pull in 3 upstream commits (Opus 4.7, responsive plan sidebar, text-gen reset fix) #6
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 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c54bd2b
fix(server): drop stale text generation options when resetting text-g…
UtkarshUsername 8e53c29
fix(web): prevent composer controls overlap on narrow windows (make p…
UtkarshUsername 1d358ef
feat: add Claude Opus 4.7 to built-in models (#2072)
Marve10s 2ea71bd
test(server): align Sonnet 4.6 default effort assertions with fork
Berkay2002 5c427a9
Merge main into upstream-sync/apr16-commits
Berkay2002 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,17 @@ | ||
| import { assert, describe, it } from "@effect/vitest"; | ||
|
|
||
| import { compareCliVersions, normalizeCliVersion } from "./cliVersion"; | ||
|
|
||
| describe("cliVersion", () => { | ||
| it("normalizes versions with a missing patch segment", () => { | ||
| assert.strictEqual(normalizeCliVersion("2.1"), "2.1.0"); | ||
| }); | ||
|
|
||
| it("compares prerelease versions before stable versions", () => { | ||
| assert.isTrue(compareCliVersions("2.1.111-beta.1", "2.1.111") < 0); | ||
| }); | ||
|
|
||
| it("rejects malformed numeric segments", () => { | ||
| assert.isTrue(compareCliVersions("1.2.3abc", "1.2.10") > 0); | ||
| }); | ||
| }); |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
supportsClaudeOpus47()treatsnull/undefinedversions as unsupported. WhenparseGenericCliVersion()fails (returns null), this will both hide Opus 4.7 and surface a "too old" upgrade message even though the version is unknown. Consider treating an unparseable/unknown version as "unknown support" (e.g., keep all built-in models and omit the upgrade message), or improve version parsing soparsedVersionis only null on truly missing output.