Skip to content

Commit bdc9ae9

Browse files
committed
fix: align Linux Cursor web source
1 parent 9d1f848 commit bdc9ae9

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Added
66
- Codex dashboard: show calendar-correct raw Today and 30-day credit totals without converting credits to billed dollars. Thanks @avenoxai!
7+
- Cursor: read the signed-in app token on Linux, with explicit manual-cookie web-source support and XDG config paths. Thanks @DonnieFi!
78
- Devin: show remaining extra-usage balance in menus, CLI, and widgets while respecting optional-usage visibility. Thanks @FNDEVVE!
89
- Widgets: make Mistral available in provider selection and switching. Thanks @joeVenner!
910

Sources/CodexBarCore/Providers/Cursor/CursorProviderDescriptor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public enum CursorProviderDescriptor {
3333
supportsTokenCost: false,
3434
noDataMessage: { "Cursor cost summary is not supported." }),
3535
fetchPlan: ProviderFetchPlan(
36-
sourceModes: [.auto, .cli],
36+
sourceModes: [.auto, .cli, .web],
3737
pipeline: ProviderFetchPipeline(resolveStrategies: { _ in [CursorStatusFetchStrategy()] })),
3838
cli: ProviderCLIConfig(
3939
name: "cursor",

TestsLinux/CursorLinuxTests.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ struct CursorLinuxTests {
3838
cursor: .init(cookieSource: .auto, manualCookieHeader: nil))))
3939
}
4040

41+
@Test
42+
func `Cursor descriptor accepts explicit web source`() {
43+
#expect(CursorProviderDescriptor.descriptor.fetchPlan.sourceModes.contains(.web))
44+
}
45+
4146
@Test
4247
func `Cursor manual cookie does not require macOS web support`() {
4348
#expect(!CodexBarCLI.sourceModeRequiresWebSupport(

0 commit comments

Comments
 (0)