Skip to content

[feedback] diagnostics#13292

Merged
rhan-oai merged 18 commits intomainfrom
rhan/feedback-diagnostics
Mar 4, 2026
Merged

[feedback] diagnostics#13292
rhan-oai merged 18 commits intomainfrom
rhan/feedback-diagnostics

Conversation

@rhan-oai
Copy link
Copy Markdown
Collaborator

@rhan-oai rhan-oai commented Mar 3, 2026

  • added header logic to display diagnostics on cli
  • added logic for collecting env vars
Screenshot 2026-03-03 at 3 49 31 PM Screenshot 2026-03-02 at 6 47 54 PM
@rhan-oai
Copy link
Copy Markdown
Collaborator Author

rhan-oai commented Mar 3, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. 🎉

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -0,0 +1,292 @@
use std::collections::HashMap;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

move into feedback crate?

) {
// Build a fresh snapshot at the time of opening the note overlay.
let snapshot = self.feedback.snapshot(self.thread_id);
let diagnostics = codex_core::feedback_diagnostics::FeedbackDiagnostics::collect_from_env();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

should this be collected in feedback.snapshot ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

feedback.snapshot returns a CodexLogSnapshot, do we want to include diagnostics in that? i guess the diagnostics are kind of a log snapshot but since they exist separately as env variables not sure if it makes sense if its not surely consistent? lmk

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

you can rename the thing we return a FeedbackSnapshot and then it'll fit.

My goal is to have upload_feedback "just work" and upload everything including diagnostics.

@rhan-oai rhan-oai requested a review from pakrym-oai March 3, 2026 20:23

struct PreparedFeedbackAttachments {
attachment_paths: Vec<PathBuf>,
_diagnostics_attachment: Option<FeedbackDiagnosticsAttachment>,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why is this _***?

include_logs: bool,
diagnostics: codex_feedback::feedback_diagnostics::FeedbackDiagnostics,
) {
// Build a fresh snapshot at the time of opening the note overlay.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

        codex_feedback::feedback_diagnostics::FeedbackDiagnostics::collect_from_env(); should run as part of feedback.snapshot
Self::collect_from_pairs(std::env::vars())
}

pub fn collect_from_pairs<I, K, V>(pairs: I) -> Self
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this shouldn't be public

@rhan-oai rhan-oai marked this pull request as ready for review March 3, 2026 23:23
@rhan-oai rhan-oai merged commit e951ef4 into main Mar 4, 2026
31 checks passed
@rhan-oai rhan-oai deleted the rhan/feedback-diagnostics branch March 4, 2026 00:34
@github-actions github-actions bot locked and limited conversation to collaborators Mar 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants