feat: harden codex queue runtime
Add model selection, batch enqueue controls, dev-ready health checks, transcript pagination, queue watchdog recovery, and MiniMax judge JSON repair for codex-queue.
This commit is contained in:
@@ -1217,10 +1217,69 @@ input:focus, select:focus, textarea:focus { border-color: var(--accent-2); }
|
||||
}
|
||||
.codex-queue-layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(320px, 0.52fr) minmax(680px, 1.58fr);
|
||||
grid-template-columns: minmax(300px, 0.52fr) minmax(0, 1.58fr);
|
||||
gap: 10px;
|
||||
align-items: start;
|
||||
}
|
||||
.codex-session-stage {
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.codex-session-stage .codex-output-panel {
|
||||
width: 100%;
|
||||
}
|
||||
.codex-session-stage .codex-transcript {
|
||||
min-height: 620px;
|
||||
max-height: calc(100vh - 230px);
|
||||
}
|
||||
.codex-session-shell {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(280px, 0.34fr) minmax(0, 1fr);
|
||||
min-width: 0;
|
||||
align-items: stretch;
|
||||
}
|
||||
.codex-session-shell.queue-collapsed {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
.codex-session-sidebar {
|
||||
display: grid;
|
||||
grid-template-rows: auto minmax(0, 1fr);
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
padding: 10px;
|
||||
border-right: 1px solid var(--line);
|
||||
background:
|
||||
radial-gradient(circle at 0 0, rgba(78, 183, 168, 0.11), transparent 42%),
|
||||
rgba(6, 10, 13, 0.72);
|
||||
}
|
||||
.codex-session-sidebar-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
}
|
||||
.codex-session-sidebar-head > div {
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
min-width: 0;
|
||||
}
|
||||
.codex-session-sidebar-head span {
|
||||
color: var(--muted);
|
||||
font-size: 10px;
|
||||
letter-spacing: 0.16em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.codex-session-sidebar-head strong {
|
||||
min-width: 0;
|
||||
color: var(--text);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.codex-session-main {
|
||||
min-width: 0;
|
||||
}
|
||||
.codex-left-rail,
|
||||
.codex-main-stage,
|
||||
.codex-detail-grid,
|
||||
@@ -1229,11 +1288,29 @@ input:focus, select:focus, textarea:focus { border-color: var(--accent-2); }
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
}
|
||||
.codex-compose-panel,
|
||||
.codex-compose-panel .panel-body,
|
||||
.codex-task-form,
|
||||
.codex-task-form label {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.codex-form-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(120px, 0.8fr) minmax(180px, 1fr) 92px;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
.codex-form-grid label:nth-child(2) {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
.codex-task-form textarea,
|
||||
.codex-steer-form textarea,
|
||||
.codex-form-grid input,
|
||||
.codex-form-grid select {
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.codex-task-list {
|
||||
display: grid;
|
||||
gap: 7px;
|
||||
@@ -1242,6 +1319,46 @@ input:focus, select:focus, textarea:focus { border-color: var(--accent-2); }
|
||||
overflow: auto;
|
||||
align-content: start;
|
||||
}
|
||||
.codex-task-list-session {
|
||||
min-height: 0;
|
||||
max-height: calc(100vh - 318px);
|
||||
}
|
||||
.codex-task-section {
|
||||
display: grid;
|
||||
gap: 7px;
|
||||
min-width: 0;
|
||||
}
|
||||
.codex-task-section + .codex-task-section {
|
||||
margin-top: 6px;
|
||||
padding-top: 9px;
|
||||
border-top: 1px solid rgba(255,255,255,0.07);
|
||||
}
|
||||
.codex-task-section-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.codex-task-section-head code {
|
||||
color: var(--accent-2);
|
||||
}
|
||||
.codex-task-section-list {
|
||||
display: grid;
|
||||
gap: 7px;
|
||||
min-width: 0;
|
||||
}
|
||||
.codex-task-section-empty {
|
||||
margin: 0;
|
||||
padding: 8px 9px;
|
||||
border: 1px dashed var(--line-soft);
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
background: rgba(255,255,255,0.02);
|
||||
}
|
||||
.codex-task-card {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
@@ -1282,6 +1399,10 @@ input:focus, select:focus, textarea:focus { border-color: var(--accent-2); }
|
||||
.codex-output-panel .panel-body {
|
||||
padding: 0;
|
||||
}
|
||||
.codex-output-stack {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
}
|
||||
.codex-transcript {
|
||||
min-height: 520px;
|
||||
max-height: calc(100vh - 300px);
|
||||
@@ -1300,6 +1421,87 @@ input:focus, select:focus, textarea:focus { border-color: var(--accent-2); }
|
||||
color: var(--muted);
|
||||
background: rgba(255,255,255,0.025);
|
||||
}
|
||||
.codex-transcript-item {
|
||||
display: grid;
|
||||
grid-template-columns: 22px minmax(0, 1fr);
|
||||
gap: 8px;
|
||||
padding: 9px 0;
|
||||
border-bottom: 1px solid rgba(255,255,255,0.045);
|
||||
}
|
||||
.codex-transcript-bullet {
|
||||
color: var(--accent);
|
||||
font-size: 20px;
|
||||
line-height: 1.1;
|
||||
text-align: center;
|
||||
}
|
||||
.codex-transcript-main {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
}
|
||||
.codex-transcript-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
min-width: 0;
|
||||
color: var(--text);
|
||||
}
|
||||
.codex-transcript-title strong {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.codex-transcript-title time {
|
||||
margin-left: auto;
|
||||
color: var(--muted);
|
||||
font-size: 10px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.codex-transcript-title code {
|
||||
max-width: 90px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
color: var(--accent-2);
|
||||
}
|
||||
.codex-transcript-command,
|
||||
.codex-transcript-body {
|
||||
margin: 0;
|
||||
white-space: pre-wrap;
|
||||
overflow-wrap: anywhere;
|
||||
border-left: 2px solid rgba(78, 183, 168, 0.26);
|
||||
padding: 2px 0 2px 10px;
|
||||
color: #d9e8e7;
|
||||
font-size: 12px;
|
||||
line-height: 1.48;
|
||||
}
|
||||
.codex-transcript-command {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin-top: 2px;
|
||||
color: #a7c7c3;
|
||||
border-color: rgba(215, 161, 58, 0.34);
|
||||
background: rgba(215, 161, 58, 0.035);
|
||||
}
|
||||
.codex-transcript-item.explored .codex-output-channel { color: #8fc7ee; border-color: rgba(105, 174, 232, 0.46); background: rgba(105, 174, 232, 0.08); }
|
||||
.codex-transcript-item.edited .codex-output-channel { color: #b6da89; border-color: rgba(182, 218, 137, 0.42); background: rgba(182, 218, 137, 0.07); }
|
||||
.codex-transcript-item.error .codex-output-channel { color: var(--danger); border-color: rgba(207, 106, 84, 0.52); background: rgba(207, 106, 84, 0.08); }
|
||||
.codex-raw-output {
|
||||
border-top: 1px solid var(--line);
|
||||
background: rgba(6, 10, 13, 0.92);
|
||||
}
|
||||
.codex-raw-output summary {
|
||||
cursor: pointer;
|
||||
padding: 8px 12px;
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
.codex-raw-output > div {
|
||||
max-height: 360px;
|
||||
overflow: auto;
|
||||
padding: 0 12px 12px;
|
||||
}
|
||||
.codex-output-line {
|
||||
display: grid;
|
||||
grid-template-columns: 130px minmax(0, 1fr);
|
||||
@@ -1344,6 +1546,46 @@ input:focus, select:focus, textarea:focus { border-color: var(--accent-2); }
|
||||
.codex-detail-grid {
|
||||
grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
|
||||
}
|
||||
.codex-prompt-panel {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
.codex-prompt-detail {
|
||||
display: grid;
|
||||
gap: 9px;
|
||||
min-width: 0;
|
||||
}
|
||||
.codex-prompt-meta {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
}
|
||||
.codex-prompt-meta span:not(.status-badge) {
|
||||
max-width: 100%;
|
||||
padding: 3px 7px;
|
||||
border: 1px solid var(--line-soft);
|
||||
color: var(--muted);
|
||||
background: rgba(255,255,255,0.025);
|
||||
font-size: 11px;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.codex-prompt-full {
|
||||
max-height: 360px;
|
||||
margin: 0;
|
||||
padding: 10px;
|
||||
overflow: auto;
|
||||
white-space: pre-wrap;
|
||||
overflow-wrap: anywhere;
|
||||
border: 1px solid rgba(215, 161, 58, 0.28);
|
||||
border-left: 3px solid rgba(215, 161, 58, 0.58);
|
||||
color: #e7ded0;
|
||||
background:
|
||||
linear-gradient(90deg, rgba(215, 161, 58, 0.08), transparent 34%),
|
||||
rgba(6, 10, 13, 0.84);
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.codex-judge-card {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
@@ -3250,7 +3492,8 @@ input:focus, select:focus, textarea:focus { border-color: var(--accent-2); }
|
||||
.pipeline-oa-guarantees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.dispatch-form { grid-template-columns: 1fr 1fr; }
|
||||
.dispatch-actions { align-items: center; }
|
||||
.page-grid, .docker-layout, .monitor-layout, .findjob-grid, .findjob-hero, .pipeline-grid, .pipeline-hero, .met-grid, .met-form-grid, .codex-queue-layout, .codex-queue-hero, .codex-detail-grid { grid-template-columns: 1fr; }
|
||||
.page-grid, .docker-layout, .monitor-layout, .findjob-grid, .findjob-hero, .pipeline-grid, .pipeline-hero, .met-grid, .met-form-grid, .codex-queue-layout, .codex-queue-hero, .codex-detail-grid, .codex-session-shell { grid-template-columns: 1fr; }
|
||||
.codex-session-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
|
||||
.pipeline-control-shell { grid-template-columns: 1fr; }
|
||||
.pipeline-node-control { max-height: none; min-height: 0; }
|
||||
.findjob-grid .panel:nth-child(3), .pipeline-grid .panel:nth-child(3), .pipeline-grid .panel:nth-child(5), .met-grid .panel:nth-child(3), .met-grid .panel:nth-child(5), .met-detail-panel { grid-column: 1; }
|
||||
|
||||
Reference in New Issue
Block a user