Skip to content

fix(cli): six small faults from the walkthrough - #653

Merged
iAmGiG merged 1 commit into
developmentfrom
fix/cli-small-faults
Nov 1, 2026
Merged

iAmGiG merged 1 commit into
developmentfrom
fix/cli-small-faults

Conversation

@iAmGiG

@iAmGiG iAmGiG commented Nov 1, 2026

Copy link
Copy Markdown
Owner

Six faults from the offline CLI walkthrough and the guarded model check. Nothing here changes an order, a stop or a routine's actions.

Fixed

  • /about market status. It said OPEN from 09:30 to 16:00 ET every day, including weekends and holidays, and ignored early closes. It now uses get_market_hours_for_date, the calendar the routines use, and names the next session ("Opens Mon Nov 02, 09:30 AM ET").
  • Old names. /about, main.py --help and the fallback URL now say OptionsCommander.
  • /watchlist with no lists names /watchlist create NAME.
  • False log line. Restoring trailing stops warned "Incomplete GTT trailing stop config" for a user's own trailing trigger. Those triggers are now left out up front; the same positions are restored as before.
  • Buy-override prompt. A BUY against a SELL signal with no position showed Direction: SELL (SHORT) and a stop above the price before asking. The prompt now shows the BUY it would place. Declining no longer suggests short, which the CLI refuses.
  • what's my stop on SPY? printed STOP LOSS twice. A stop at the broker now prints once, at the broker's price; saved levels only fill in what the broker lacks.

Testing

Mocks and a temp GTT database; no broker or model calls. The tests for these faults fail on the old code. pytest tests/ -m "not db": 1943 passed, 2 skipped.

- /about says CLOSED on weekends and holidays and after an early close, by the
  calendar the routines use, and names the real next session
- /about, --help and the fallback URL carry the project's name
- the empty /watchlist message names the real command
- restoring trailing stops skips a user's own trailing trigger, so its false
  "Incomplete" warning goes
- the buy-override prompt shows the BUY it would place, with its stop below the
  price, and no longer offers `short`, which the CLI refuses
- a stop at the broker prints once, at the broker's price; saved levels fill in
  only what the broker lacks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@iAmGiG
iAmGiG merged commit aebd902 into development Nov 1, 2026
7 checks passed
@iAmGiG
iAmGiG deleted the fix/cli-small-faults branch November 1, 2026 21:05
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.

1 participant