Skip to content

Conversation

@aibrahim-oai
Copy link
Collaborator

@aibrahim-oai aibrahim-oai commented Oct 30, 2025

Summary

  • add a debug-only /rollout slash command that prints the rollout file path or reports when none is known
  • surface the new command in the slash command metadata and cover it with unit tests
image
| SlashCommand::Feedback
| SlashCommand::Quit => true,

#[cfg(debug_assertions)]
Copy link
Collaborator

Choose a reason for hiding this comment

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

is there a way to have #[cfg(debug_assertions)] in fewer places? Maybe only where we filter commands from visible list?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Matches are inclusive, once it appears in the definition, it should be everywhere.

Copy link
Collaborator

Choose a reason for hiding this comment

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

What I mean is can we compile this command for all configs and hide for non-debug ones?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

lemme play with it

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@codex code this

Copy link
Contributor

Choose a reason for hiding this comment

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

Summary

Testing

  • cargo test -p codex-tui

View task →

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

## Summary
- add a debug-only `/rollout` slash command that prints the rollout file
path or reports when none is known
- surface the new command in the slash command metadata and cover it
with unit tests
- compile the `/rollout` slash command in all builds and hide it from
the release command list

## Testing
- cargo test -p codex-tui

------
https://chatgpt.com/codex/tasks/task_i_6902bd0edd8083219abc8cd4e24c3fcb
}
}

#[cfg(debug_assertions)]
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we remove this too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@aibrahim-oai aibrahim-oai enabled auto-merge (squash) October 30, 2025 03:36
@aibrahim-oai aibrahim-oai merged commit 9bd3453 into main Oct 30, 2025
25 checks passed
@aibrahim-oai aibrahim-oai deleted the codex/add-debug-slash-command-for-rollout-path branch October 30, 2025 03:51
@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

3 participants