Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions claude_code_log/html/templates/components/message_styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,7 @@

/* Slash command prompts (isMeta=true, LLM-generated content) */
.user.slash-command {
border-left-color: var(--user-dimmed);
opacity: 0.85;
border-left-color: var(--user-color);
}

.assistant {
Expand Down Expand Up @@ -388,8 +387,8 @@

/* Command output styling */
.command-output {
background-color: #1e1e1e11;
border-left-color: var(--warning-dimmed);
background-color: var(--highlight-light);
border-left-color: var(--user-color);
}

.command-output-content {
Expand All @@ -416,6 +415,10 @@
padding: 0 1em;
}

.content pre.command-output-content {
padding: .5em;
}

/* Bash command styling (user-initiated, right-aligned) */
.bash-input {
background-color: var(--highlight-light);
Expand Down Expand Up @@ -737,8 +740,12 @@ pre > code {
}

.thinking-content {
background-color: var(--thinking-dimmed);
border-left: #66666688 1px solid;
font-style: italic;
font-size: 80%;
}

.thinking-content em {
font-style: normal;
}

.thinking-text {
Expand Down
2 changes: 1 addition & 1 deletion claude_code_log/html/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def get_message_emoji(msg: "TemplateMessage") -> str:
return ""
return "🤷"
elif msg_type == "bash-input":
return "🤷"
return "💻"
elif msg_type == "assistant":
if msg.modifiers.is_sidechain:
return "🔗"
Expand Down
4 changes: 2 additions & 2 deletions claude_code_log/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ def _process_local_command_output(
# If parsing fails, content will be None and caller will handle fallback

message_type = "user"
message_title = "Command output"
message_title = ""
return modifiers, content, message_type, message_title


Expand Down Expand Up @@ -702,7 +702,7 @@ def _process_bash_output(
# If parsing fails, content will be None - caller/renderer handles empty output

message_type = "bash-output"
message_title = "Command output"
message_title = ""
return modifiers, content, message_type, message_title


Expand Down
78 changes: 53 additions & 25 deletions test/__snapshots__/test_snapshot_html.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -2388,8 +2388,7 @@

/* Slash command prompts (isMeta=true, LLM-generated content) */
.user.slash-command {
border-left-color: var(--user-dimmed);
opacity: 0.85;
border-left-color: var(--user-color);
}

.assistant {
Expand Down Expand Up @@ -2480,8 +2479,8 @@

/* Command output styling */
.command-output {
background-color: #1e1e1e11;
border-left-color: var(--warning-dimmed);
background-color: var(--highlight-light);
border-left-color: var(--user-color);
}

.command-output-content {
Expand All @@ -2508,6 +2507,10 @@
padding: 0 1em;
}

.content pre.command-output-content {
padding: .5em;
}

/* Bash command styling (user-initiated, right-aligned) */
.bash-input {
background-color: var(--highlight-light);
Expand Down Expand Up @@ -2829,8 +2832,12 @@
}

.thinking-content {
background-color: var(--thinking-dimmed);
border-left: #66666688 1px solid;
font-style: italic;
font-size: 80%;
}

.thinking-content em {
font-style: normal;
}

.thinking-text {
Expand Down Expand Up @@ -7182,8 +7189,7 @@

/* Slash command prompts (isMeta=true, LLM-generated content) */
.user.slash-command {
border-left-color: var(--user-dimmed);
opacity: 0.85;
border-left-color: var(--user-color);
}

.assistant {
Expand Down Expand Up @@ -7274,8 +7280,8 @@

/* Command output styling */
.command-output {
background-color: #1e1e1e11;
border-left-color: var(--warning-dimmed);
background-color: var(--highlight-light);
border-left-color: var(--user-color);
}

.command-output-content {
Expand All @@ -7302,6 +7308,10 @@
padding: 0 1em;
}

.content pre.command-output-content {
padding: .5em;
}

/* Bash command styling (user-initiated, right-aligned) */
.bash-input {
background-color: var(--highlight-light);
Expand Down Expand Up @@ -7623,8 +7633,12 @@
}

.thinking-content {
background-color: var(--thinking-dimmed);
border-left: #66666688 1px solid;
font-style: italic;
font-size: 80%;
}

.thinking-content em {
font-style: normal;
}

.thinking-text {
Expand Down Expand Up @@ -9834,7 +9848,7 @@

<div class='message user command-output pair_last session-edge_cases' data-message-id='d-6' id='msg-d-6'>
<div class='header'>
<span>Command output</span>
<span></span>
<div class='header-info'>
<div class='timestamp-row'>
<span class='timestamp' data-timestamp='2025-06-14T11:02:20Z'>2025-06-14 11:02:20</span>
Expand Down Expand Up @@ -12066,8 +12080,7 @@

/* Slash command prompts (isMeta=true, LLM-generated content) */
.user.slash-command {
border-left-color: var(--user-dimmed);
opacity: 0.85;
border-left-color: var(--user-color);
}

.assistant {
Expand Down Expand Up @@ -12158,8 +12171,8 @@

/* Command output styling */
.command-output {
background-color: #1e1e1e11;
border-left-color: var(--warning-dimmed);
background-color: var(--highlight-light);
border-left-color: var(--user-color);
}

.command-output-content {
Expand All @@ -12186,6 +12199,10 @@
padding: 0 1em;
}

.content pre.command-output-content {
padding: .5em;
}

/* Bash command styling (user-initiated, right-aligned) */
.bash-input {
background-color: var(--highlight-light);
Expand Down Expand Up @@ -12507,8 +12524,12 @@
}

.thinking-content {
background-color: var(--thinking-dimmed);
border-left: #66666688 1px solid;
font-style: italic;
font-size: 80%;
}

.thinking-content em {
font-style: normal;
}

.thinking-text {
Expand Down Expand Up @@ -16998,8 +17019,7 @@

/* Slash command prompts (isMeta=true, LLM-generated content) */
.user.slash-command {
border-left-color: var(--user-dimmed);
opacity: 0.85;
border-left-color: var(--user-color);
}

.assistant {
Expand Down Expand Up @@ -17090,8 +17110,8 @@

/* Command output styling */
.command-output {
background-color: #1e1e1e11;
border-left-color: var(--warning-dimmed);
background-color: var(--highlight-light);
border-left-color: var(--user-color);
}

.command-output-content {
Expand All @@ -17118,6 +17138,10 @@
padding: 0 1em;
}

.content pre.command-output-content {
padding: .5em;
}

/* Bash command styling (user-initiated, right-aligned) */
.bash-input {
background-color: var(--highlight-light);
Expand Down Expand Up @@ -17439,8 +17463,12 @@
}

.thinking-content {
background-color: var(--thinking-dimmed);
border-left: #66666688 1px solid;
font-style: italic;
font-size: 80%;
}

.thinking-content em {
font-style: normal;
}

.thinking-text {
Expand Down
Loading