Skip to content

FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.

v4.0.2 bug fixes

tilakpatel227351cb992076
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 297a79272..8fb89e1db 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -246,7 +246,9 @@ jobs:
with:
key: linux-x64-release-${{ env.QT_VERSION }}
max-size: 500M
- update-package-index: true
+ # update-package-index is unset: the "Install system dependencies"
+ # step below already runs apt-get update, so this action's own
+ # update is redundant and was observed to hang the runner.
# ── System deps ───────────────────────────────────────────────────────
# ubuntu-22.04 ships g++ 11.4 by default, but CMakeLists.txt enforces
diff --git a/fincept-qt/build-msvc-ci.pid b/fincept-qt/build-msvc-ci.pid
new file mode 100644
index 000000000..371ad1dae
--- /dev/null
+++ b/fincept-qt/build-msvc-ci.pid
@@ -0,0 +1 @@
+23880
diff --git a/fincept-qt/src/ai_chat/AiChatScreen.cpp b/fincept-qt/src/ai_chat/AiChatScreen.cpp
index d293ad8e7..adb9dddaa 100644
--- a/fincept-qt/src/ai_chat/AiChatScreen.cpp
+++ b/fincept-qt/src/ai_chat/AiChatScreen.cpp
@@ -92,37 +92,6 @@ static QString body_color(const QString& role) {
return col::TEXT_PRIMARY();
}
-// Default stylesheet for rendered markdown inside QLabel bubbles.
-// Comprehensive styling for LLM responses: paragraphs, lists, headings,
-// code blocks, blockquotes, tables, and links.
-static QString markdown_css(const QString& text_color) {
- return QString("body { color: %1; line-height: 1.5; }"
- "p { margin-top: 6px; margin-bottom: 6px; }"
- "ul, ol { margin-top: 4px; margin-bottom: 4px; padding-left: 20px; }"
- "li { margin-top: 3px; margin-bottom: 3px; }"
- "h1 { margin-top: 14px; margin-bottom: 6px; color: %2; font-size: 18px; font-weight: 700; }"
- "h2 { margin-top: 12px; margin-bottom: 5px; color: %2; font-size: 16px; font-weight: 700; }"
- "h3 { margin-top: 10px; margin-bottom: 4px; color: %2; font-size: 15px; font-weight: 600; }"
- "h4 { margin-top: 8px; margin-bottom: 4px; color: %2; font-size: 14px; font-weight: 600; }"
- "hr { margin-top: 10px; margin-bottom: 10px; border: none; "
- " border-top: 1px solid %3; }"
- "a { color: %2; text-decoration: underline; }"
- "code { background: %4; color: %2; padding: 1px 4px; "
- " font-family: 'Consolas', 'Courier New', monospace; font-size: 13px; }"
- "pre { background: %4; border: 1px solid %3; padding: 10px 12px; "
- " margin-top: 6px; margin-bottom: 6px; "
- " font-family: 'Consolas', 'Courier New', monospace; font-size: 13px; }"
- "blockquote { border-left: 3px solid %2; padding-left: 12px; "
- " margin-top: 6px; margin-bottom: 6px; color: %5; }"
- "table { border-collapse: collapse; margin-top: 6px; margin-bottom: 6px; }"
- "th { background: %4; border: 1px solid %3; padding: 4px 8px; "
- " font-weight: 600; color: %2; }"
- "td { border: 1px solid %3; padding: 4px 8px; }"
- "strong { color: %1; font-weight: 700; }"
- "em { font-style: italic; }")
- .arg(text_color, col::AMBER(), col::BORDER_MED(), col::BG_RAISED(), col::TEXT_SECONDARY());
-}
-
static QString generate_session_title() {
static const QStringList prefixes = {"Amber", "Apex", "Atlas", "Echo", "Flux", "Nova", "Slate", "Vector"};
static const QStringList nouns = {"Brief", "Drift", "Focus", "Ledger", "Macro", "Pulse", "Signal", "Tape"};
diff --git a/fincept-qt/src/ai_chat/LlmService.cpp b/fincept-qt/src/ai_chat/LlmService.cpp
index e04b960f2..452107218 100644
--- a/fincept-qt/src/ai_chat/LlmService.cpp
+++ b/fincept-qt/src/ai_chat/LlmService.cpp
@@ -1773,6 +1773,7 @@ void LlmService::parse_usage(LlmResponse& resp, const QJsonObject& rj, const QSt
// ============================================================================
QString LlmService::get_models_url(const QString& provider, const QString& api_key, const QString& base_url) {
+ Q_UNUSED(api_key) // Auth goes via headers (see get_models_headers()), URL is provider-based.
const QString p = provider.toLower();
// Custom base_url (except fincept)
diff --git a/fincept-qt/src/auth/SecurityAuditLog.cpp b/fincept-qt/src/auth/SecurityAuditLog.cpp
index 30e26da2e..ef40158c1 100644
--- a/fincept-qt/src/auth/SecurityAuditLog.cpp
+++ b/fincept-qt/src/auth/SecurityAuditLog.cpp
@@ -43,7 +43,7 @@ QList<AuditEvent> SecurityAuditLog::recent(int limit) {
if (r.is_err())
return out;
- auto q = r.value();
+ auto& q = r.value();
while (q.next()) {
AuditEvent e;
e.id = q.value(0).toLongLong();