Skip to content

feat: add /max_steps slash command to adjust max_steps at runtime - #284

Open
yablokolabs wants to merge 5 commits into
AtomicBot-ai:mainfrom
yablokolabs:feat/max-steps-slash-command
Open

feat: add /max_steps slash command to adjust max_steps at runtime#284
yablokolabs wants to merge 5 commits into
AtomicBot-ai:mainfrom
yablokolabs:feat/max-steps-slash-command

Conversation

@yablokolabs

@yablokolabs yablokolabs commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the TUI /max_steps slash command so operators can inspect or change the agent's per-turn step budget without restarting.

  • /max_steps reports the active runtime value.
  • /max_steps <positive integer> updates the live TUI orchestrator and persists agent.maxSteps to the user config.
  • Persistence failures keep the runtime update and report a warning.
  • Invalid values are rejected through the existing positive-integer config validation.
  • The command is available from the slash-command menu and remains compatible with the upstream TUI selection-drag callbacks.

Validation

  • 60 focused TUI/config tests pass.
  • npm run lint passes.
  • npm run build passes.
  • The full suite has one pre-existing/unrelated sidecar concurrency failure in src/sidecar/send-message-concurrency.test.ts.

- Adds mention of dedicated Ollama (local) preset in provider wizard
- Notes auto-detection and streamlined setup in v0.2.1
- Improves discoverability of new local model preset feature
…configuration at runtime

Adds a new slash command that allows users to get or set the agent's max_steps
configuration without requiring a restart. The command validates input as a
positive integer, updates both runtime config and persists to config.json.

- Adds 'max_steps' entry to SLASH_COMMANDS registry with description
- Implements dispatchMaxStepsSub function to handle command logic
- Reuses existing parsePositiveInt validation from config-schema.ts
- Updates getConfig().agent.maxSteps and persists via writeUserConfigFileSync
- Provides clear systemMessage feedback for current value, updates, and errors
- Handles persistence failures gracefully (updates runtime even if disk write fails)
- Follows existing patterns from other slash commands like /theme, /model, etc.
@yablokolabs
yablokolabs force-pushed the feat/max-steps-slash-command branch from e83e71c to da06140 Compare August 30, 2026 07:25
@yablokolabs
yablokolabs force-pushed the feat/max-steps-slash-command branch from da06140 to 6ba1c6c Compare August 30, 2026 07:26
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