Skip to content

Codex-generated pull request#38

Merged
rad1092 merged 1 commit into
mainfrom
codex/refactor-csv_text-contract-structure
Feb 15, 2026
Merged

Codex-generated pull request#38
rad1092 merged 1 commit into
mainfrom
codex/refactor-csv_text-contract-structure

Conversation

@rad1092
Copy link
Copy Markdown
Owner

@rad1092 rad1092 commented Feb 15, 2026

Codex generated this pull request, but encountered an unexpected error after generation. This is a placeholder PR message.


Codex Task

@rad1092 rad1092 merged commit 72edcb5 into main Feb 15, 2026
4 checks passed
@rad1092 rad1092 deleted the codex/refactor-csv_text-contract-structure branch February 15, 2026 04:01
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 23f10d0317

ℹ️ 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".

Comment thread bitnet_tools/analysis.py
Comment on lines +189 to +190
normalized_csv_text = str(payload.get("normalized_csv_text", ""))
if normalized_csv_text.strip():
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Handle null normalized_csv_text as missing

normalize_analysis_input converts normalized_csv_text to str before checking emptiness, so a JSON null becomes the literal 'None' and is treated as valid normalized CSV. In /api/analyze, a payload like {"normalized_csv_text": null, "csv_text": "a,b\n1,2\n"} will skip the legacy fallback and produce a summary for fake header None (often row_count=0), which silently corrupts analysis output instead of using the provided CSV text.

Useful? React with 👍 / 👎.

Comment thread bitnet_tools/analysis.py
Comment on lines +178 to +180
raw_type = str(payload.get("input_type", "csv")).strip().lower() or "csv"
if raw_type not in VALID_INPUT_TYPES:
raise ValueError(f"unsupported input_type: {raw_type}")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Default null input_type to csv before validation

input_type is also string-coerced before defaulting, so JSON null is interpreted as 'none' and rejected as unsupported. This breaks backward-compatible analyze requests that send nullable input_type (common with optional client fields) even when valid CSV data is present; None/blank should resolve to the csv default prior to validation.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant