Skip to content

fix: resolve stack overflow in HCL-style test and clippy warnings#27

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
fix/test-stack-overflow
Apr 29, 2026
Merged

fix: resolve stack overflow in HCL-style test and clippy warnings#27
ZhiXiao-Lin merged 1 commit into
mainfrom
fix/test-stack-overflow

Conversation

@ZhiXiao-Lin
Copy link
Copy Markdown
Contributor

Summary

  • Fix stack overflow in test_config_supports_hcl_style_provider_blocks by using labeled models block (models "gpt-4.1") instead of unlabeled with id attribute, since a3s_acl parser has issues with unlabeled nested blocks
  • Remove unnecessary .into() calls in agent_api.rs to fix clippy warnings

Test plan

  • cargo test -p a3s-code-core --lib test_config_supports_hcl_style_provider_blocks passes
  • cargo clippy -p a3s-code-core --lib shows no new warnings
  • cargo fmt --all passes

- Change test_config_supports_hcl_style_provider_blocks to use labeled
  models block (models "gpt-4.1") instead of unlabeled with id attribute,
  since a3s_acl parser has issues with unlabeled nested blocks
- Remove unnecessary .into() calls in agent_api.rs to fix clippy warnings
@ZhiXiao-Lin ZhiXiao-Lin merged commit 6911b99 into main Apr 29, 2026
1 check 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.

2 participants