[BUG]
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
I have an issue
API Error: Usage credits required for 1M context · turn on usage credits at claude.ai/settings/usage, or use --model to switch to standard context
But i can't change the model, even so if i try i get the same message. I only have that on Claude code at the moment on Visual Studio Code on macOS
I'm on the Pro Plan and it says i have use 60% of my session
What Should Happen?
should keep going and not block
Error Messages/Logs
API Error: Usage credits required for 1M context · turn on usage credits at claude.ai/settings/usage, or use --model to switch to standard context
Steps to Reproduce
Bash Check how commerce.tsx fetches and filters publications
IN
grep -n "visibleTo\|memberOnly\|subscribeToFeed\|FeedPublication\|publications\|Publications" /Users/rachid/ici-app/app/commerce.tsx | head -20
OUT
23: FeedPublication,
27: subscribeToFeed,
134: const [feed, setFeed] = useState<FeedPublication[]>([]);
140: return subscribeToFeed(user.city, setFeed);
153: const handleLike = async (item: FeedPublication) => {
174: const handleShare = async (item: FeedPublication) => {
180: const renderFeedItem = ({ item }: { item: FeedPublication }) => {
Bash Check visibleTo in commerce-post-create
IN
grep -n "visibleTo\|memberOnly\|\"members\"\|\"public\"" /Users/rachid/ici-app/app/commerce-post-create.tsx | head -15
OUT
353: const [visibleTo, setVisibleTo] = useState<"public" | "members">("public");
422: visibleTo: isAssociationMode ? visibleTo : "public",
678: style={[styles.visibilityBtn, visibleTo === "public" && { backgroundColor: ASSOCIATION_ACCENT + "18", borderColor: ASSOCIATION_ACCENT }]}
679: onPress={() => setVisibleTo("
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
15,564,516
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗