feat: add copyable error reports to detailed exception pages #10220
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 219 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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
Diff Size
diff_size
0.323
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #10220"
general
weight: 0.35
neznaika0
Description
This PR proposes adding a Copy Details button to CodeIgniter’s detailed HTML exception page.
The goal is to make debugging information easier to share from the local development error page. Instead of manually gathering the relevant debugging information, users can copy a Markdown-formatted report with one click and paste it into an issue, discussion, chat, LLM or anywhere else they need.
https://github.com/user-attachments/assets/b9e5b1aa-85b5-402a-ac59-413c1dac796f
The copied report includes the most useful debugging context:
The report intentionally avoids riskful or sensitive request data. It does NOT include headers, cookies, query strings, request body data, session data, route params, database queries, or trace arguments.
Implementation wise, the Markdown report is rendered by a small
error_report.phppartial used by the detailed HTML error view. The button uses the Clipboard API when available and falls back to a textarea-based copy path when needed.Tests cover rendering the button, escaping the hidden report content, including previous exceptions, and omitting sensitive request data, trace arguments, and query strings from copied output.
Checklist: