ISSUE DESCRIPTION [BUG] apm install fail second time with Content hash mismatch Describe…
- User
ISSUE DESCRIPTION
[BUG] apm install fail second time with Content hash mismatch Describe the bug I can install my repo (see apm.yml further down) via
apm install <org>/<repo>/package/<project>just fine (kinda, see the logs, it looks wonky but maybe it's just a new feature) but the second time I runapm installit will fail consistently withContent hash mismatch.To Reproduce Steps to reproduce the behavior:
- apm install <repo>
- apm install
Expected behavior A clear and concise description of what you expected to happen.
Environment (please complete the following information):
- OS: Windows
- APM Version: 0.16.0
Logs
powershell Assistant
Now let me implement the fix in
download_ado_fileand check the existing tests around it.Assistant
Now let me build a reproduction that simulates the real ADO behavior (203 + dynamic sign-in HTML) — first verifying the original bug on the unpatched tree, then verifying the fix:
Assistant
The fix works. Let me verify the error message is surfaced clearly to the user:
Assistant
Both failure modes produce clear errors and the success path is unaffected. Now run the existing test suites that cover this code:
Assistant
The integration suite polluted the repo working tree. Restore everything except my intended fix:
Assistant
Final verification — re-run both repro scenarios on the fixed tree plus the validation test suites:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.