mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-05-25 00:44:16 +02:00
Add files via upload
This commit is contained in:
BIN
Binary file not shown.
+4
-4
@@ -439,7 +439,7 @@ final class CyberStrikeAITab implements ITab {
|
||||
if (run == null) return;
|
||||
String token = getToken();
|
||||
if (token == null || token.trim().isEmpty()) {
|
||||
appendToRun(runId, "\n[error] Not validated.\n");
|
||||
appendProgressToRun(runId, "\n[error] Not validated.\n");
|
||||
return;
|
||||
}
|
||||
String convId;
|
||||
@@ -447,7 +447,7 @@ final class CyberStrikeAITab implements ITab {
|
||||
convId = run.conversationId;
|
||||
}
|
||||
if (convId == null || convId.trim().isEmpty()) {
|
||||
appendToRun(runId, "\n[info] conversationId not available yet (wait for server to create session).\n");
|
||||
appendProgressToRun(runId, "\n[info] conversationId not available yet (wait for server to create session).\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -456,10 +456,10 @@ final class CyberStrikeAITab implements ITab {
|
||||
try {
|
||||
CyberStrikeAIClient.Config cfg = currentConfig();
|
||||
client.cancelByConversationId(cfg.baseUrl, token, convId);
|
||||
appendToRun(runId, "\n[info] Cancel requested.\n");
|
||||
appendProgressToRun(runId, "\n[info] Cancel requested.\n");
|
||||
setRunStatus(runId, "cancelling");
|
||||
} catch (Exception ex) {
|
||||
appendToRun(runId, "\n[error] Cancel failed: " + ex.getMessage() + "\n");
|
||||
appendProgressToRun(runId, "\n[error] Cancel failed: " + ex.getMessage() + "\n");
|
||||
} finally {
|
||||
SwingUtilities.invokeLater(() -> stopButton.setEnabled(true));
|
||||
}
|
||||
|
||||
+4
-1
@@ -24,7 +24,10 @@ final class MarkdownRenderer {
|
||||
// so we explicitly define font sizes to keep a clear hierarchy.
|
||||
.append("body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;font-size:13px;line-height:1.45;margin:10px;color:#111;}")
|
||||
.append("code,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;}")
|
||||
.append("pre{background:#f6f8fa;border:1px solid #e5e7eb;border-radius:6px;padding:10px;overflow:auto;}")
|
||||
// Keep inline code readable (Swing may render it too small otherwise).
|
||||
.append("code{font-size:0.95em;background:#f6f8fa;border:1px solid #e5e7eb;border-radius:4px;padding:0 4px;}")
|
||||
.append("pre{font-size:0.95em;background:#f6f8fa;border:1px solid #e5e7eb;border-radius:6px;padding:10px;overflow:auto;}")
|
||||
.append("pre code{font-size:1em;background:transparent;border:none;padding:0;}")
|
||||
.append("p{margin:0.55em 0;}")
|
||||
.append("h1{font-size:20px;margin:0.85em 0 0.45em 0;}")
|
||||
.append("h2{font-size:18px;margin:0.85em 0 0.45em 0;}")
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user