Skip to content

CodeRabbit Generated Unit Tests: Generate unit tests#62

Merged
69gg merged 16 commits into
mainfrom
coderabbitai/utg/1859133
May 24, 2026
Merged

CodeRabbit Generated Unit Tests: Generate unit tests#62
69gg merged 16 commits into
mainfrom
coderabbitai/utg/1859133

Conversation

@coderabbitai

@coderabbitai coderabbitai Bot commented May 24, 2026

Copy link
Copy Markdown
Contributor

Unit test generation was requested by @69gg.

The following files were modified:

  • tests/test_ai_client_setup.py
  • tests/test_llm_sanitize.py
  • tests/test_llm_streaming.py
  • tests/test_llm_thinking.py
  • tests/test_root_lazy_import.py

69gg and others added 13 commits May 23, 2026 18:23
Revert the parallel-tool prompt regression, clarify that end must run in
its own round after reading tool results, and defer end execution after
other tools succeed instead of skipping it and forcing another LLM turn.

Co-authored-by: Cursor <cursoragent@cursor.com>
When end is bundled with other tools in one turn, run the other tools
normally but return an explicit rejection for end; clarify this in prompts
and each.md so models do not expect end to succeed in the same round.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep assistant plain-text in messages and use a generic retry hint instead of hardcoding send_message/end, avoiding misleading follow-up tool calls.

Co-authored-by: Cursor <cursoragent@cursor.com>
Wire config_class as the canonical Config, slim loader to a compat shim,
and restore root lazy re-exports so library embed tests can inject config
without config.toml.

Co-authored-by: Cursor <cursoragent@cursor.com>
Extract ai, handlers, attachments, cognitive, memes, coordinator, onebot,
and agent runner into subpackages with compatibility shims; add python-api
docs and py.typed; trim noisy inline comments across runtime code.

Co-authored-by: Cursor <cursoragent@cursor.com>
Strip agent-generated label comments and duplicate section headers without
changing runtime behavior.

Co-authored-by: Cursor <cursoragent@cursor.com>
Extract shared meme image utilities, consolidate ingest lock model,
and simplify memes API and bilibili WBI nav parsing.

Co-authored-by: Cursor <cursoragent@cursor.com>
The ai/client/setup.py module is one level deeper than the old client.py,
so Path(__file__).parents[1] pointed at Undefined/ai/ and loaded zero
builtin tools. Centralize package root resolution and add regression tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
Export set_config from the root package, update python-api.md, and expand
README with a simpler core-feature bullet plus a Skills-focused embed example.

Co-authored-by: Cursor <cursoragent@cursor.com>
Delete unreachable monolith files shadowed by subpackages, sync set_config
with ConfigManager, declare py.typed in the wheel, and add layout regressions.

Co-authored-by: Cursor <cursoragent@cursor.com>
Configure base_branches to .* so CodeRabbit reviews PRs targeting any branch.
Harden queued LLM retries, pending-call cleanup, tool filtering, config
bounds, attachment rendering, and privacy-safe prompt cache keys.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented May 24, 2026

Copy link
Copy Markdown
Contributor Author

Important

Review skipped

This PR was authored by the user configured for CodeRabbit reviews. CodeRabbit does not review PRs authored by this user. It's recommended to use a dedicated user account to post CodeRabbit review feedback.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 31cedd03-16c0-473a-9ba3-d3e8584e275f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands and usage tips.

69gg and others added 3 commits May 24, 2026 10:24
Merge bugfix/clean-is-better so split modules resolve, fix three
incorrect assertions, remove unused imports, normalize thinking type
casing for non-DeepSeek providers, and satisfy strict mypy in tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep v3.5.0 lazy root exports and combine thinking override normalization.

Co-authored-by: Cursor <cursoragent@cursor.com>
@69gg 69gg merged commit 8fe61c4 into main May 24, 2026
3 checks passed
@779053570

Copy link
Copy Markdown

tql

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.

2 participants