Skip to content

Fix load_config() Argument Bug and Consolidate Workspace Assertions#1981

Merged
Trecek merged 2 commits into
developfrom
fix-load-config-argument-bug-and-consolidate-workspace-asser/1888
May 6, 2026
Merged

Fix load_config() Argument Bug and Consolidate Workspace Assertions#1981
Trecek merged 2 commits into
developfrom
fix-load-config-argument-bug-and-consolidate-workspace-asser/1888

Conversation

@Trecek
Copy link
Copy Markdown
Collaborator

@Trecek Trecek commented May 6, 2026

Summary

C4-6 (load_config(tmp_path / "settings.toml") wrong arg type) was already resolved by a prior split commit. C4-9 (three separate load_config() calls for one-liner assertions in TestWorkspaceConfig) is the sole remaining change: consolidate three test methods into a single test_workspace_config_defaults method calling load_config(tmp_path) once and asserting all fields together. Drop the hasattr check as redundant.

Requirements

C4-6 — load_config() argument bug (ALREADY RESOLVED)

Fix load_config(tmp_path / "settings.toml")load_config(tmp_path). Passing a .toml file path causes silent fallback to defaults. (Resolved in commit a22cb18.)

C4-9 — Consolidate TestWorkspaceConfig assertions (REQUIRES ACTION)

Consolidate TestWorkspaceConfig's three separate load_config(tmp_path) calls into a single test_workspace_config_defaults test checking all three fields at once. Drop the hasattr check.

Changed Files

Modified (●):

tests/config/test_config.py

Closes #1888

Implementation Plan

Plan file: /home/talon/projects/autoskillit-runs/impl-20260505-221514-570647/.autoskillit/temp/make-plan/fix_load_config_argument_bug_and_consolidate_workspace_assertions_plan_2026-05-05_222100.md

🤖 Generated with Claude Code via AutoSkillit

Token Usage Summary

Step count uncached output cache_read peak_ctx turns cache_write time
plan 1 193 13.7k 1.1M 82.3k 82 55.4k 6m 10s
verify 1 100 6.4k 370.9k 38.7k 32 25.8k 2m 31s
implement 1 191.2k 3.1k 400.2k 26.7k 33 39.9k 5m 3s
prepare_pr 1 113.6k 3.6k 317.2k 26.7k 24 15.2k 1m 20s
compose_pr 1 45.0k 1.4k 183.9k 26.7k 16 15.0k 40s
review_pr 1 116 12.1k 465.6k 44.6k 37 33.0k 3m 49s
resolve_review 1 165 6.6k 678.0k 45.7k 52 33.4k 2m 47s
Total 350.4k 46.8k 3.5M 82.3k 217.6k 22m 23s

Token Efficiency

Step LoC Changed cache_read/LoC cache_write/LoC output/LoC
plan 0
verify 0
implement 15 26679.0 2656.7 203.5
prepare_pr 0
compose_pr 0
review_pr 0
resolve_review 1 677988.0 33373.0 6565.0
Total 16 217535.9 13602.3 2926.6

Replace three separate test methods each calling load_config() once with
a single test_workspace_config_defaults method that calls load_config()
once and asserts both worktree_root and runs_root are None.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator Author

@Trecek Trecek left a comment

Choose a reason for hiding this comment

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

AutoSkillit PR Review — Verdict: approved_with_comments

Comment thread tests/config/test_config.py
Copy link
Copy Markdown
Collaborator Author

@Trecek Trecek left a comment

Choose a reason for hiding this comment

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

AutoSkillit review: warning-only findings detected. See inline comments — no blocking changes required.

@Trecek Trecek added this pull request to the merge queue May 6, 2026
Merged via the queue into develop with commit bf50ef0 May 6, 2026
2 checks passed
@Trecek Trecek deleted the fix-load-config-argument-bug-and-consolidate-workspace-asser/1888 branch May 6, 2026 06:01
Trecek added a commit that referenced this pull request May 8, 2026
…1981)

## Summary

C4-6 (load_config(tmp_path / "settings.toml") wrong arg type) was
already resolved by a prior split commit. C4-9 (three separate
load_config() calls for one-liner assertions in TestWorkspaceConfig) is
the sole remaining change: consolidate three test methods into a single
test_workspace_config_defaults method calling load_config(tmp_path) once
and asserting all fields together. Drop the hasattr check as redundant.

## Requirements

### C4-6 — load_config() argument bug (ALREADY RESOLVED)
Fix `load_config(tmp_path / "settings.toml")` → `load_config(tmp_path)`.
Passing a `.toml` file path causes silent fallback to defaults.
(Resolved in commit a22cb18.)

### C4-9 — Consolidate TestWorkspaceConfig assertions (REQUIRES ACTION)
Consolidate `TestWorkspaceConfig`'s three separate
`load_config(tmp_path)` calls into a single
`test_workspace_config_defaults` test checking all three fields at once.
Drop the `hasattr` check.

## Changed Files

### Modified (●):
tests/config/test_config.py

Closes #1888

## Implementation Plan

Plan file:
`/home/talon/projects/autoskillit-runs/impl-20260505-221514-570647/.autoskillit/temp/make-plan/fix_load_config_argument_bug_and_consolidate_workspace_assertions_plan_2026-05-05_222100.md`

🤖 Generated with [Claude Code](https://claude.com/claude-code) via
AutoSkillit
<!-- autoskillit:pipeline-signature
steps=prepare_pr,run_arch_lenses,compose_pr,annotate_pr_diff,review_pr
-->

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
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.

1 participant