Skip to content

Conversation

@mattmorgis
Copy link
Owner

Summary of changes

  • Resolved all remaining mypy type‑checking errors.
  • CLI: simplified --prompt flag to literal input or - (stdin), removed file‑based prompt auto‑detection, updated docs & tests.
  • GitHub MCP: allow create_issue in plan mode, refreshed tests, and added tests to mypy config.

Eliminate usages of `cast(UIMessage, msg)` by:

- Importing `UIMessage` in agent.py and changing `_map_sdk_event` to return Optional[UIMessage].
- Updating `run_step` and `_ui_stream` signatures to yield `UIMessage` directly instead of `Dict[str, Any]`.
- Removing all `cast(UIMessage, msg)` calls in repl.py and headless.py.
…ection\n\nDrop file-based prompt logic in favor of a single '-' sentinel for

large inputs via stdin. Update docs (README.md, docs/cli.md) to illustrate  usage. Adjust tests to remove file-based test and add stdin piping test.\n\nFixes issue with
path-too-long errors when passing huge prompts directly as file names.
@mattmorgis mattmorgis added the oai label May 31, 2025
@mattmorgis mattmorgis merged commit ca256b0 into main May 31, 2025
@mattmorgis mattmorgis deleted the resolve-mypy branch May 31, 2025 02:32
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.

2 participants