feat(agent): standardize approval policy and sandbox naming conventions in Codex settings

This commit is contained in:
HouYunFei
2026-07-29 16:50:51 +08:00
parent b926feeb14
commit fe1ba781d1
5 changed files with 149 additions and 126 deletions
+141 -120
View File
@@ -472,124 +472,145 @@
mix-blend-mode: normal;
}
@layer components {
.agent-streamdown {
overflow-wrap: anywhere;
}
.agent-streamdown > :first-child {
margin-top: 0;
}
.agent-streamdown > :last-child {
margin-bottom: 0;
}
.agent-streamdown [data-streamdown="code-block"] {
margin-block: 0.75rem;
overflow: hidden;
border-color: color-mix(in srgb, currentColor 13%, transparent);
border-radius: 0.75rem;
background: color-mix(in srgb, currentColor 3%, transparent);
}
.agent-streamdown [data-streamdown="code-block-header"] {
min-height: 0;
padding: 0.45rem 0.75rem;
border-color: color-mix(in srgb, currentColor 9%, transparent);
background: transparent;
font-size: 0.625rem;
line-height: 1rem;
letter-spacing: 0.08em;
text-transform: uppercase;
opacity: 0.52;
}
.agent-streamdown [data-streamdown="code-block-body"] {
padding: 0.8rem 0.9rem;
background: transparent !important;
font-size: 0.75rem;
line-height: 1.25rem;
}
.agent-streamdown [data-streamdown="code-block-actions"] {
gap: 0;
margin: 0.35rem;
padding: 0;
border: 0;
border-radius: 0.375rem;
background: color-mix(in srgb, var(--background) 88%, transparent);
box-shadow: none;
}
.agent-streamdown [data-streamdown="code-block-actions"] button {
padding: 0.35rem;
border-radius: 0.375rem;
}
.agent-streamdown [data-streamdown="inline-code"] {
padding: 0.12rem 0.35rem;
border: 0;
border-radius: 0.3rem;
background: color-mix(in srgb, currentColor 7%, transparent);
font-size: 0.88em;
}
.agent-streamdown [data-streamdown="link"] {
color: inherit;
text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
text-underline-offset: 0.2em;
}
[data-streamdown="link-safety-modal"] {
padding: 1rem;
background: rgb(28 25 23 / 24%);
backdrop-filter: blur(8px);
}
[data-streamdown="link-safety-modal"] > div {
max-width: 24rem;
gap: 1rem;
padding: 1.25rem;
border-color: color-mix(in srgb, currentColor 12%, transparent);
border-radius: 1rem;
box-shadow: 0 20px 60px rgb(28 25 23 / 18%);
}
[data-streamdown="link-safety-modal"] > div > button {
top: 0.9rem;
right: 0.9rem;
}
[data-streamdown="link-safety-modal"] > div > div:first-of-type {
gap: 0.25rem;
padding-right: 2rem;
}
[data-streamdown="link-safety-modal"] > div > div:first-of-type > div {
gap: 0.5rem;
font-size: 1rem;
}
[data-streamdown="link-safety-modal"] > div > div:nth-of-type(2) {
max-height: 7rem;
padding: 0.75rem;
border: 1px solid color-mix(in srgb, currentColor 9%, transparent);
background: color-mix(in srgb, currentColor 4%, transparent);
font-size: 0.7rem;
line-height: 1.15rem;
overflow-wrap: anywhere;
}
[data-streamdown="link-safety-modal"] > div > div:last-child {
justify-content: flex-end;
}
[data-streamdown="link-safety-modal"] > div > div:last-child button {
flex: none;
min-width: 7rem;
padding: 0.5rem 0.8rem;
border-radius: 0.6rem;
font-size: 0.75rem;
}
.agent-streamdown {
overflow-wrap: anywhere;
}
.agent-streamdown > :first-child {
margin-top: 0;
}
.agent-streamdown > :last-child {
margin-bottom: 0;
}
.agent-streamdown [data-streamdown="code-block"] {
position: relative;
display: block;
contain: none;
contain-intrinsic-size: none !important;
width: 100%;
margin-block: 0.35rem;
padding: 0;
gap: 0;
overflow: hidden;
border: 0;
border-radius: 0.4rem;
background: color-mix(in srgb, currentColor 5%, transparent);
}
.agent-streamdown [data-streamdown="code-block-header"] {
display: none;
}
.agent-streamdown [data-streamdown="code-block"] > div:has(> [data-streamdown="code-block-actions"]) {
position: absolute;
top: 0.2rem;
right: 0.2rem;
z-index: 1;
height: auto;
margin: 0;
}
.agent-streamdown [data-streamdown="code-block-body"] {
min-height: 0;
padding: 0.4rem 2rem 0.4rem 0.6rem;
overflow-x: auto;
border: 0;
border-radius: 0;
background: transparent !important;
font-size: 0.75rem;
line-height: 1.15rem;
}
.agent-streamdown [data-streamdown="code-block-actions"] {
gap: 0;
margin: 0;
padding: 0;
border: 0;
border-radius: 0.3rem;
background: transparent;
box-shadow: none;
opacity: 0;
transition: opacity 150ms ease;
}
.agent-streamdown [data-streamdown="code-block"]:hover [data-streamdown="code-block-actions"],
.agent-streamdown [data-streamdown="code-block-actions"]:focus-within {
opacity: 0.58;
}
.agent-streamdown [data-streamdown="code-block-actions"] button {
padding: 0.25rem;
border-radius: 0.3rem;
}
.agent-streamdown [data-streamdown="code-block-actions"] button:hover {
background: color-mix(in srgb, currentColor 8%, transparent);
}
.agent-streamdown [data-streamdown="inline-code"] {
padding: 0.12rem 0.35rem;
border: 0;
border-radius: 0.3rem;
background: color-mix(in srgb, currentColor 7%, transparent);
font-size: 0.88em;
}
.agent-streamdown [data-streamdown="link"] {
color: inherit;
text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
text-underline-offset: 0.2em;
}
[data-streamdown="link-safety-modal"] {
padding: 1rem;
background: rgb(28 25 23 / 24%);
backdrop-filter: blur(8px);
}
[data-streamdown="link-safety-modal"] > div {
max-width: 24rem;
gap: 1rem;
padding: 1.25rem;
border-color: color-mix(in srgb, currentColor 12%, transparent);
border-radius: 1rem;
box-shadow: 0 20px 60px rgb(28 25 23 / 18%);
}
[data-streamdown="link-safety-modal"] > div > button {
top: 0.9rem;
right: 0.9rem;
}
[data-streamdown="link-safety-modal"] > div > div:first-of-type {
gap: 0.25rem;
padding-right: 2rem;
}
[data-streamdown="link-safety-modal"] > div > div:first-of-type > div {
gap: 0.5rem;
font-size: 1rem;
}
[data-streamdown="link-safety-modal"] > div > div:nth-of-type(2) {
max-height: 7rem;
padding: 0.75rem;
border: 1px solid color-mix(in srgb, currentColor 9%, transparent);
background: color-mix(in srgb, currentColor 4%, transparent);
font-size: 0.7rem;
line-height: 1.15rem;
overflow-wrap: anywhere;
}
[data-streamdown="link-safety-modal"] > div > div:last-child {
justify-content: flex-end;
}
[data-streamdown="link-safety-modal"] > div > div:last-child button {
flex: none;
min-width: 7rem;
padding: 0.5rem 0.8rem;
border-radius: 0.6rem;
font-size: 0.75rem;
}