Skip to content

Commit

Permalink
Correct vscode dark mode api call display
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonstyle committed Feb 26, 2025
1 parent 79fa8d3 commit da1feed
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- Inspect View: Fix layout issues with human agent terminal session playback.
- Inspect View: Improve tool input / output appearance when rendered in VSCode.
- Inspect View: Display reasoning tokens in model usage for the samples and for the complete eval.
- Inspect View: Improve model api request / response output when rendere in VSCode.

## v0.3.70 (25 February 2025)

Expand Down
2 changes: 2 additions & 0 deletions src/inspect_ai/_view/www/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -811,12 +811,14 @@ pre[class*="language-"].tool-output,
background-color: #f8f8f8;
}

.vscode-dark .model-call pre[class*="language-"],
.vscode-dark .markdown-content pre[class*="language-"],
.vscode-dark pre[class*="language-"].tool-output,
.vscode-dark .tool-output {
background-color: #333333;
}

.model-call pre[class*="language-"],
.markdown-content pre[class*="language-"],
pre[class*="language-"].tool-output {
border: none !important;
Expand Down
2 changes: 2 additions & 0 deletions src/inspect_ai/_view/www/dist/assets/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/inspect_ai/_view/www/dist/assets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53777,7 +53777,7 @@ self.onmessage = function (e) {
if (!contents2) {
return null;
}
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$t.codePre, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("model-call"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$t.codePre), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
"code",
{
id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ export const APICodeCell: FC<APICodeCellProps> = ({ id, contents }) => {
}

return (
<div>
<pre className={styles.codePre}>
<div className={clsx("model-call")}>
<pre className={clsx(styles.codePre)}>
<code
id={id}
ref={codeRef}
Expand Down

0 comments on commit da1feed

Please sign in to comment.