Skip to content

Rename local max output env var to SMITH prefix#41

Merged
faustodavid merged 2 commits into
faustodavid:mainfrom
BrentGTR:feat/rename-max-output-env-var
Jun 1, 2026
Merged

Rename local max output env var to SMITH prefix#41
faustodavid merged 2 commits into
faustodavid:mainfrom
BrentGTR:feat/rename-max-output-env-var

Conversation

@BrentGTR
Copy link
Copy Markdown
Contributor

@BrentGTR BrentGTR commented May 20, 2026

Summary

  • Rename the canonical output truncation env var from THANOS_LOCAL_MAX_OUTPUT_CHARS to SMITH_LOCAL_MAX_OUTPUT_CHARS.
  • Keep backward compatibility by falling back to THANOS_LOCAL_MAX_OUTPUT_CHARS when the new variable is unset.
  • Add migration-focused tests for precedence and fallback, including the invalid-new-var edge case.
  • Update .env.example to document the new canonical variable.

Closes #27.

Test plan

  • pytest tests/unit/test_config.py
  • pytest tests/unit

BrentGTR and others added 2 commits May 20, 2026 11:33
Prefer SMITH_LOCAL_MAX_OUTPUT_CHARS while keeping THANOS_LOCAL_MAX_OUTPUT_CHARS as a backwards-compatible fallback, and update docs/tests to reflect the new canonical variable.

Co-authored-by: Cursor <cursoragent@cursor.com>
Cover the invalid new env-var scenario to ensure runtime config falls back to the legacy THANOS variable during the compatibility window.

Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread src/smith/config.py
@faustodavid
Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@faustodavid faustodavid merged commit c9bddc3 into faustodavid:main Jun 1, 2026
2 checks passed
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.

[Suggestion] local max output chars name change

2 participants