Terminal too small72x18 detected, need at least 72x18
Cause: toni requires a minimum terminal size of 72 columns by 18 rows to display the UI properly.Solution:
Resize Your Terminal
Maximize your terminal window
Reduce font size to fit more characters
Check your terminal size:
echo "Columns: $COLUMNS, Rows: $LINES"
Set a larger terminal size:
# For most terminalsresize -s 24 80
For Remote Sessions (SSH/Tmux)
# Check terminal dimensionstput colstput lines# Resize tmux pane (if using tmux)# Press Ctrl+B then type::resize-pane -x 80 -y 24# For SSH sessions, ensure TERM is set correctlyexport TERM=xterm-256color
export YELP_API_KEY="your_api_key_here"# Make it permanent (add to ~/.bashrc or ~/.zshrc)echo 'export YELP_API_KEY="your_api_key_here"' >> ~/.bashrcsource ~/.bashrc
2. Use Command-Line Flag
toni --yelp-key "your_api_key_here"
3. Re-run Onboarding
# Delete onboarding settings to trigger setup againrm ~/.toni/onboarding.jsontoni
4. Manually Configure
# Create/update the API key fileecho "your_api_key_here" > ~/.toni/yelp_api_keychmod 600 ~/.toni/yelp_api_key# Enable Yelp in settingsecho '{"completed":true,"yelp_enabled":true}' > ~/.toni/onboarding.json
cat ~/.toni/yelp_api_key | wc -c # Should be ~32-40 characters
Generate a new API key if needed
Update your key:
echo "new_api_key_here" > ~/.toni/yelp_api_key
Status 429 - Rate Limit
Yelp API has daily limits (typically 5,000 calls/day for free tier):
Wait 24 hours for the limit to reset
Reduce search frequency
Use manual restaurant entry instead of autocomplete
Consider upgrading your Yelp API tier
Network Errors
# Test connectivity to Yelp APIcurl -H "Authorization: Bearer $YELP_API_KEY" \ "https://api.yelp.com/v3/businesses/search?term=pizza&location=NYC"# Check DNS resolutionnslookup api.yelp.com# Try with longer timeout (edit source if needed)# Default timeout is 5 seconds (see internal/search/yelp.go:24)
Cause: Another toni process is accessing the database, or the database file is on a network filesystem.Solutions:
Check for Multiple Instances
# Find running toni processesps aux | grep toni# Kill hung processespkill -9 toni# Check for stale lock filesls -la ~/.toni/rm ~/.toni/toni.db-journal # Only if toni is not running!
Network Filesystem Issues
SQLite doesn’t work well on NFS, CIFS, or other network filesystems:
# Check filesystem typedf -T ~/.toni/# If on network filesystem, use a local path insteadtoni --db /tmp/toni.db
Cause: The database file exists but is corrupted or not a valid SQLite file.Solution:
# Check if file is actually a SQLite databasefile ~/.toni/toni.db# Expected output: "SQLite 3.x database"# If not, delete and recreate:mv ~/.toni/toni.db ~/.toni/toni.db.invalidtoni # Will create fresh database
# Verify binary locationwhich toni# Check if it's in your PATHecho $PATH# If installed via go install:ls -la ~/go/bin/toni# Add to PATH if neededexport PATH="$HOME/go/bin:$PATH"echo 'export PATH="$HOME/go/bin:$PATH"' >> ~/.bashrc
Manual Build
git clone https://github.com/mihirchanduka/toni.gitcd tonigo build -o tonisudo mv toni /usr/local/bin/
Symptom: Text appears without colors or stylingCause: Terminal doesn’t support 256 colors or ANSI escape codesSolutions:
# Check color supportecho $TERM# Set to a color-capable terminal typeexport TERM=xterm-256color# Test color outputcurl -s https://gist.githubusercontent.com/HaleTom/89ffe32783f89f403bba96bd7bcd1263/raw/ | bash