-
-
Notifications
You must be signed in to change notification settings - Fork 13
🔧 Add error handling improvements to terminal-ai #26
Copy link
Copy link
Open
Rishabh23112/100LinesOfAICode
#1Labels
bugSomething isn't workingSomething isn't workinggood-first-issueGood for newcomersGood for newcomershacktoberfestHacktoberfest participation welcomeHacktoberfest participation welcomehelp-wantedExtra attention is neededExtra attention is needed
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood-first-issueGood for newcomersGood for newcomershacktoberfestHacktoberfest participation welcomeHacktoberfest participation welcomehelp-wantedExtra attention is neededExtra attention is needed
🎯 Goal
Improve error handling in
terminal-ai/terminal.pyfor better UX.📋 Description
Currently, the tool doesn't handle some edge cases gracefully. Let's make it bulletproof!
🐛 Issues to Fix
1. API Key Missing
Currently crashes. Should show friendly message:
2. Network Errors
Add retry logic and timeout handling:
3. Empty Input
Handle empty commands gracefully:
4. Command Timeout
Add timeout for long-running commands
📁 File to Update
terminal-ai/terminal.py(around lines 30-80)✅ Acceptance Criteria
🎓 Learning Outcomes
Estimated time: 2-3 hours
Impact: Better user experience for everyone!
💡 Reference
See
commit-ai/commit.pyfor good error handling examples!