Skip to content

Stabilize command-dispatch exit codes - #2722

Merged
Widthdom merged 6 commits into
mainfrom
fix-issue1660-1663
May 31, 2026
Merged

Stabilize command-dispatch exit codes#2722
Widthdom merged 6 commits into
mainfrom
fix-issue1660-1663

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

Summary

  • Add stable UnhandledException exit code 99 for unexpected command-dispatch failures.
  • Classify unhandled SQLite BUSY, LOCKED, and READONLY failures as transient database exit code 6, while keeping permanent SQLite failures on database exit code 3.
  • Update user-guide exit-code documentation, tests, and bilingual changelog fragments.

Validation

  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter "FullyQualifiedName~ProgramRunnerTests.Run_UnhandledException_ReturnsSanitizedSingleLineError|FullyQualifiedName~ProgramRunnerTests.Run_ForcedGlobalToolLogging_WritesUnhandledExceptionChain|FullyQualifiedName~ProgramCliTests.Run_Unhandled" -p:UseSharedCompilation=false
  • dotnet build CodeIndex.sln --no-restore
  • Adversarial review: No blocking/actionable issues found.

Documentation and Changelog

  • Updated USER_GUIDE.md exit-code tables in English and Japanese.
  • Added changelog.d/unreleased/1660.fixed.md.
  • Added changelog.d/unreleased/1663.fixed.md.

Notes

  • dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll status --check --json still reports the local index as stale/degraded because the existing workspace index predates several unrelated main-branch changes. A scoped refresh of the files changed by this PR succeeded.

Fixes #1660
Fixes #1663

@Widthdom
Widthdom merged commit e5085b2 into main May 31, 2026
10 checks passed
@Widthdom
Widthdom deleted the fix-issue1660-1663 branch May 31, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant