Respect any previous readline #194
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.40) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 172 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.308
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #194"
general
weight: 0.35
lhecker
The fix includes "recording" the previous implementation of
PSConsoleHostReadline, and then invoking it as the first call in thePSConsoleHostReadlineof this readline.Closes #190
AI Disclaimer: I hand-wrote the implementation, but I do not know Powershell, so Claude guided me through all the built-ins and hooks. All docs are also hand-written here. Although the PR is small, please review it adversarially--I'm not a great PS expert.
Validation
PSScriptAnalyzer.1. Confirms that the previous handlers gets called and that its line is subsequently rewritten.
2. Confirms that
git status,la,ls "*"andcat $fare rewritten exactly as before.3. A failed command exiting with 2 doesn't clobber
$LASTEXITCODE.4. A failed cmdlet exiting with 2 doesn't clobber
$LASTEXITCODE.5. The previous Readline hook receives the original line and that the shell gets the rewritten one.
6. Loading the section twice doesn't make the handler call itself.
7. Loading under
Set-StrictMode -Version Latestworks as expected.8. A null or empty line comes back unchanged.
9. Without a previous handler, built-in
PSReadLinegets invoked.vibe coded pr-190-tests.zip (complete slop)