Repository navigation
Description
Summary
Two IPC surfaces have zero renderer/overlay/e2e consumers but are deliberately-built (not accidental) — they need an explicit product decision rather than a silent delete.
1. maka.usage bridge namespace (speculative authority surface)
preload/preload.ts:935-953exposesusage.summary/buckets/logs/listPricing/putPricing/resetPricing→main/usage-ipc-main.ts:86-166handlers +usage:pricing:changedpush.- Zero consumers on
mainand across all local/remote branches (verified by repo-wide grep). The usage settings page (renderer/settings/usage-settings-page.tsx) usessettings:usageStats(usage-ipc-main.ts:83) viaonReload/onUpdateprops — not this namespace.usage:pricing:putis the only writer of pricing overrides, so that feature is currently unreachable. - However, this is the v0 Host surface deliberately exposed by feat(runtime-host): extract Usage/Pricing authority #1596 "Usage/Pricing authority" (tracked under [Tracking] Runtime Host M3 domain ownership migration #1167 M3), with full main-side tests (
main/__tests__/usage-ipc-main.test.tsincl. CAS/notification contract). Thefix/usage-stats-restylebranch restyles only the renderer page and does not wiremaka.usage(its merge-base predates feat(runtime-host): extract Usage/Pricing authority #1596).
Options: (a) remove the maka.usage preload namespace now, keep main-side authority handlers for the planned consumer; or (b) explicitly defer with an owner and delivery plan. Do not silently delete the main-side authority.
2. maka.cursorSubscription OAuth service + 8 channels (experimental, previously shipped UI)
preload/preload.ts:749; service constructed every boot (main/boot.ts:380); channels inmain/subscription-ipc-main.ts:361-411gated byMAKA_CURSOR_SUBSCRIPTION_EXPERIMENTAL !== '0'(default on, opt-out —oauth/cursor-subscription-helpers.ts:79-80).- No renderer consumer;
OAuthCardId(renderer/settings/provider-oauth-section.tsx:20) has nocursor. A cursor card existed until refactor(desktop): simplify model connection settings #1033 removed it (2026-07-15).main/app-lifecycle.ts:275-282still migrates the legacy.cursor_subscription_tokenfile, suggesting historical user credentials exist. - Incidental:
cursor-subscription:logoutis not gated by the flag (subscription-ipc-main.ts:408-411).
Options: (a) product retired the Cursor subscription — remove service/handlers/preload namespace, with an explicit plan for any migrated credentials; (b) a card is planned — add cursor to OAuthCardId + provider-oauth-section.tsx. Do not delete without the credential-migration decision.
Owner
Product owner (desktop subscriptions) + main process (usage/pricing authority).
Acceptance
- An explicit decision is recorded on this issue; the chosen option lands in a follow-up PR.
Activity
me2seeks commentedon Aug 3, 2026
English
I went through #1596, the current Desktop wiring, and how comparable agents handle Cursor and pricing overrides. My preference would be:
cursor-subscriptionimplementation and do not restore its OAuth card. It is built around an external/private auth pattern and still has no model/runtime consumer, so restoring the card would expose a login that cannot power a usable provider. If Maka later supports the official Cursor Agent CLI or SDK, I think that should be a separate external-agent backend decision rather than a continuation of this OAuth surface.window.maka.usagenamespace has no renderer consumer, I would remove that speculative bridge now instead of treating its shape as the future M4 contract. The Desktop adapter can expose a narrow renderer interface backed bypricing.query/pricing.mutateonce there is a real consumer; the exact preload shape should be coordinated with [Tracking] Runtime Host M4 Desktop-first client adapters #2010.cursor-subscriptioncredential entries, without importing, refreshing, or otherwise continuing to use them. It should also prove that unrelated credentials are untouched and that rerunning cleanup is safe.If this direction is accepted, I would split the follow-up work into independently reviewable pieces:
I have not started implementation yet; I wanted to record the product and migration decision before freezing another client interface.
简体中文
我重新对照了 #1596、当前 Desktop 接线,以及类似 Agent 对 Cursor 和价格覆盖的处理方式。我的倾向是:
cursor-subscription实现,不恢复它的 OAuth 卡片。它基于外部/非公开认证模式,而且仍然没有 model/runtime consumer;恢复卡片只会暴露一个无法驱动可用 provider 的登录入口。如果 Maka 以后支持官方 Cursor Agent CLI 或 SDK,我认为应当把它作为独立的 external-agent backend 决策,而不是延续这套 OAuth surface。window.maka.usage没有 renderer consumer,因此我倾向于现在删除这套 speculative bridge,不把它的形状提前冻结成未来的 M4 contract。等有真实消费者后,Desktop adapter 再提供由pricing.query/pricing.mutate支撑的窄 renderer interface;具体 preload 形状应与 [Tracking] Runtime Host M4 Desktop-first client adapters #2010 协调。cursor-subscription凭据,不再导入、刷新或继续使用它们;测试还应证明不会影响其他 provider 的凭据,并且重复执行清理是安全的。如果维护者认可这个方向,我建议把后续工作拆成可以独立审查的部分:
我还没有开始实现;我希望先记录清楚产品与迁移决定,再冻结新的 Client interface。
Astro-Han commentedon Aug 3, 2026
@me2seeks thanks for the thorough read-through — this matches what I was seeing too. Two current-code facts that support the direction:
maka.usage's shape now.settings:usageStats, so themaka.usagenamespace remains zero-consumer.Decisions I'd record here:
.cursor_subscription_tokenfile and the sharedcursor-subscriptioncredential entries without importing or refreshing them, with tests proving unrelated credentials are untouched and reruns are safe. Official Cursor Agent CLI/SDK support, if any, is a separate external-agent backend decision; I'd track it as its own issue rather than a continuation of this surface.maka.usagebridge: remove the preload namespace now, keep the main-side authority handlers — they're the desktop wiring of the feat(runtime-host): extract Usage/Pricing authority #1596 Host authority and stay until the M4 client adapter (tracked in [Tracking] Runtime Host M4 Desktop-first client adapters #2010) exposes a narrow renderer interface backed bypricing.query/pricing.mutate.I'm good with your three-way split (cursor retirement / Pricing Settings spec / Cursor CLI-SDK deferred to a separate issue) as independently reviewable follow-ups. Owner: desktop subscriptions for (1), main-process usage/pricing for (2)+(3).
简体中文对照
同意这个方向,两点补充事实:#2018 的成本展示走 AgentRun stream 而非 usage read model;#2024 用量页仍走
settings:usageStats——maka.usage确实零消费者。决定:
maka.usagepreload namespace,保留 main 侧 authority(feat(runtime-host): extract Usage/Pricing authority #1596 Host 接线的桌面部分),等 [Tracking] Runtime Host M4 Desktop-first client adapters #2010 M4 adapter 用pricing.query/pricing.mutate暴露窄接口。认可三个独立 follow-up 的拆分。Owner:desktop subscriptions 负责 (1),main-process usage/pricing 负责 (2)(3)。
refactor(desktop): remove consumer-less IPC bridge surface (#2065)
me2seeks commentedon Aug 5, 2026
The decisions tracked here have now landed: Cursor subscription retirement in #2037, removal of the consumer-less Usage bridge in #2065, and the remaining Pricing work is tracked in #2015. I think this issue has served its purpose and can be closed. Thanks!
Astro-Han commentedon Aug 8, 2026
Closing as completed. #2037 retired the cursor subscription, #2065 removed the consumer-less Usage bridge, and the remaining Pricing delivery is tracked in #2015.