From d814bff2dad795ac412894bfa5b0d65c68b698be Mon Sep 17 00:00:00 2001 From: Paul Lizer Date: Wed, 8 Apr 2026 16:16:59 -0400 Subject: [PATCH 1/2] fixed github pages --- application/single_app/config.py | 2 +- docs/_layouts/libdoc/page.html | 5 +++++ .../fixes/v0.241.001/NEW_FOUNDRY_UI_VISIBILITY_FIX.md | 2 +- .../v0.241.001/SINGLE_APP_TEMPLATE_JSON_BOOTSTRAP_FIX.md | 4 ++-- docs/explanation/running_simplechat_azure_production.md | 2 +- docs/explanation/running_simplechat_locally.md | 2 +- 6 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 docs/_layouts/libdoc/page.html diff --git a/application/single_app/config.py b/application/single_app/config.py index 87fb07e71..624ae3676 100644 --- a/application/single_app/config.py +++ b/application/single_app/config.py @@ -94,7 +94,7 @@ EXECUTOR_TYPE = 'thread' EXECUTOR_MAX_WORKERS = 30 SESSION_TYPE = 'filesystem' -VERSION = "0.241.001" +VERSION = "0.241.002" SECRET_KEY = os.getenv('SECRET_KEY', 'dev-secret-key-change-in-production') diff --git a/docs/_layouts/libdoc/page.html b/docs/_layouts/libdoc/page.html new file mode 100644 index 000000000..83935c1a4 --- /dev/null +++ b/docs/_layouts/libdoc/page.html @@ -0,0 +1,5 @@ +--- +layout: page +--- + +{{ content }} \ No newline at end of file diff --git a/docs/explanation/fixes/v0.241.001/NEW_FOUNDRY_UI_VISIBILITY_FIX.md b/docs/explanation/fixes/v0.241.001/NEW_FOUNDRY_UI_VISIBILITY_FIX.md index 2056127fb..ec11c7a33 100644 --- a/docs/explanation/fixes/v0.241.001/NEW_FOUNDRY_UI_VISIBILITY_FIX.md +++ b/docs/explanation/fixes/v0.241.001/NEW_FOUNDRY_UI_VISIBILITY_FIX.md @@ -10,7 +10,7 @@ New Foundry had already been wired into backend fetch and streaming paths, but t ## Root Cause -- The New Foundry agent type radio in `_agent_modal.html` was wrapped in a disabled `{% if false %}` block. +- The New Foundry agent type radio in `_agent_modal.html` was wrapped in a disabled {% raw %}{% if false %}{% endraw %} block. - `_multiendpoint_modal.html` only exposed `aoai` and classic Foundry in the provider selector. - `is_frontend_visible_model_endpoint_provider()` in `functions_settings.py` still treated `new_foundry` as unsupported for frontend use. diff --git a/docs/explanation/fixes/v0.241.001/SINGLE_APP_TEMPLATE_JSON_BOOTSTRAP_FIX.md b/docs/explanation/fixes/v0.241.001/SINGLE_APP_TEMPLATE_JSON_BOOTSTRAP_FIX.md index 02baafc48..c72f83385 100644 --- a/docs/explanation/fixes/v0.241.001/SINGLE_APP_TEMPLATE_JSON_BOOTSTRAP_FIX.md +++ b/docs/explanation/fixes/v0.241.001/SINGLE_APP_TEMPLATE_JSON_BOOTSTRAP_FIX.md @@ -4,7 +4,7 @@ Fixed/Implemented in version: **0.240.020** ## Issue Description -Several `single_app` templates were still bootstrapping server-side JSON with patterns such as `JSON.parse('{{ value|tojson }}')`. That left workspace and admin pages vulnerable to the same control-character and quoting failures already fixed in the chat template. +Several `single_app` templates were still bootstrapping server-side JSON with patterns such as `JSON.parse('{% raw %}{{ value|tojson }}{% endraw %}')`. That left workspace and admin pages vulnerable to the same control-character and quoting failures already fixed in the chat template. ## Root Cause Analysis @@ -47,4 +47,4 @@ Several `single_app` templates were still bootstrapping server-side JSON with pa - The affected templates now emit direct JavaScript literals from Jinja `tojson` output. - Escaped values remain encoded within the serialized payload instead of being reinterpreted by an intermediate JavaScript string literal. -- The added regression tests help prevent `JSON.parse('{{ ...|tojson ... }}')` from being reintroduced in these templates. \ No newline at end of file +- The added regression tests help prevent `JSON.parse('{% raw %}{{ ...|tojson ... }}{% endraw %}')` from being reintroduced in these templates. \ No newline at end of file diff --git a/docs/explanation/running_simplechat_azure_production.md b/docs/explanation/running_simplechat_azure_production.md index 7e6e38416..b3042591a 100644 --- a/docs/explanation/running_simplechat_azure_production.md +++ b/docs/explanation/running_simplechat_azure_production.md @@ -8,7 +8,7 @@ category: Explanation This guide explains the supported production startup patterns for Simple Chat in Azure. -Current documentation version: 0.239.139 +Current documentation version: 0.241.002 ## Default Azure Production Model in This Repo diff --git a/docs/explanation/running_simplechat_locally.md b/docs/explanation/running_simplechat_locally.md index 163c728f6..cc0d2537c 100644 --- a/docs/explanation/running_simplechat_locally.md +++ b/docs/explanation/running_simplechat_locally.md @@ -8,7 +8,7 @@ category: Explanation This guide explains the recommended local developer workflow for Simple Chat. -Current documentation version: 0.240.002 +Current documentation version: 0.241.002 ## VS Code Python 3.12 Setup From 0165727e6657314630a37eacade18335cc86a914 Mon Sep 17 00:00:00 2001 From: Paul Lizer Date: Wed, 8 Apr 2026 16:23:28 -0400 Subject: [PATCH 2/2] Update config.py --- application/single_app/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/single_app/config.py b/application/single_app/config.py index 624ae3676..87fb07e71 100644 --- a/application/single_app/config.py +++ b/application/single_app/config.py @@ -94,7 +94,7 @@ EXECUTOR_TYPE = 'thread' EXECUTOR_MAX_WORKERS = 30 SESSION_TYPE = 'filesystem' -VERSION = "0.241.002" +VERSION = "0.241.001" SECRET_KEY = os.getenv('SECRET_KEY', 'dev-secret-key-change-in-production')