Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Summary

Make the 1M context checkbox setting global instead of per-workspace.

Changes

  • Updated use1MContext hook to use global localStorage key
  • Removed workspaceId parameter from hook signature
  • Updated all call sites: Context1MCheckbox, CostsTab, ChatInput
  • Removed workspaceId from ChatContext (no longer needed)
  • Bonus: Added closed PR detection to wait_pr_checks.sh script

Rationale

Users typically want 1M context either on or off everywhere. Per-workspace state caused confusion when switching between workspaces.

Testing

  • ✅ make typecheck
  • ✅ make test (273 tests passing)

Generated with cmux

Change use1MContext hook to use global localStorage instead of per-workspace.
The 1M context setting now applies to all workspaces.

Changes:
- Remove workspaceId parameter from use1MContext hook
- Update all call sites to not pass workspaceId
- Remove workspaceId from ChatContext (no longer needed)
- Update ChatProvider in AIView to not require workspaceId

This simplifies the UX - users either want 1M context or they don't,
regardless of which workspace they're in.
@ammario ammario enabled auto-merge October 9, 2025 15:55
Script now fails early if PR is closed (not merged), preventing
infinite waiting on closed PRs.
@ammar-agent ammar-agent force-pushed the make-1m-context-global branch from 479aff4 to ad66469 Compare October 9, 2025 15:57
@ammario ammario added this pull request to the merge queue Oct 9, 2025
Merged via the queue into main with commit 01229ca Oct 9, 2025
6 checks passed
@ammario ammario deleted the make-1m-context-global branch October 9, 2025 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants