Skip to content

Commit e16dccb

Browse files
committedApr 24, 2025
refactor(bug-report): remove redundant comments in /bug handler
1 parent aec3a4b commit e16dccb

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed
 

‎codex-cli/src/components/chat/terminal-chat-input.tsx

-5
Original file line numberDiff line numberDiff line change
@@ -470,16 +470,12 @@ export default function TerminalChatInput({
470470
setInput("");
471471

472472
try {
473-
// Dynamically import dependencies to avoid unnecessary bundle size.
474473
const os = await import("node:os");
475-
476-
// Lazy import CLI_VERSION to avoid circular deps.
477474
const { CLI_VERSION } = await import("../../utils/session.js");
478475
const { buildBugReportUrl } = await import(
479476
"../../utils/bug-report.js"
480477
);
481478

482-
// Construct the bug report URL.
483479
const url = buildBugReportUrl({
484480
items: items ?? [],
485481
cliVersion: CLI_VERSION,
@@ -489,7 +485,6 @@ export default function TerminalChatInput({
489485
.join(" | "),
490486
});
491487

492-
// Display the URL in the chat history.
493488
setItems((prev) => [
494489
...prev,
495490
{

‎codex-cli/src/components/help-overlay.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ export default function HelpOverlay({
5353
<Text color="cyan">/clearhistory</Text> – clear command history
5454
</Text>
5555
<Text>
56-
<Text color="cyan">/bug</Text> – generate a prefilled GitHub issue URL with session log
56+
<Text color="cyan">/bug</Text> – generate a prefilled GitHub issue URL
57+
with session log
5758
</Text>
5859
<Text>
5960
<Text color="cyan">/diff</Text> – view working tree git diff

‎codex-cli/src/utils/slash-commands.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ export const SLASH_COMMANDS: Array<SlashCommand> = [
2323
{ command: "/help", description: "Show list of commands" },
2424
{ command: "/model", description: "Open model selection panel" },
2525
{ command: "/approval", description: "Open approval mode selection panel" },
26-
{ command: "/bug", description: "Generate a prefilled GitHub issue URL with session log" },
26+
{
27+
command: "/bug",
28+
description: "Generate a prefilled GitHub issue URL with session log",
29+
},
2730
{
2831
command: "/diff",
2932
description:

0 commit comments

Comments
 (0)