0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 21:45:25 +08:00
discourse/plugins/discourse-data-explorer/lib/discourse_data_explorer
Sam f86bdd738a
DEV: Make AI context compaction global (#41317)
Apply token-budgeted agent execution and context compaction to all AI
agent runs instead of gating it behind execution_mode. Remove the legacy
fixed-limit agent settings, keep compression_threshold defaulted to 80,
and trim prompt history from the latest compression checkpoint.

Why:
Preserving a stable compressed context across turns keeps important
conversation state available while allowing newer messages to append to
a
consistent prefix. That improves cache reuse and avoids repeatedly
throwing away useful context just to stay under model limits.

Compaction shape:

  before: turn 1 [full -> compact] | turn 2 [full -> compact]
  after:  [compact checkpoint] -> turn 1 -> turn 2 -> ...

---------

Co-authored-by: Rafael Silva <xfalcox@gmail.com>
2026-07-14 18:41:37 -03:00
..
tools FEATURE: Add query examples for Data Explorer AI (#41288) 2026-07-01 15:07:28 +08:00
workflows/sql_action FEATURE: discourse-workflows (#40374) 2026-05-28 19:44:50 +02:00
admin_dashboard_report_provider.rb UX: Interleave dashboard report providers alphabetically (#40483) 2026-06-03 02:51:55 +03:00
ai_query_enqueuer.rb FEATURE: AI-generated DE queries on /new before creation (#39412) 2026-04-22 13:50:26 +08:00
ai_query_generator.rb DEV: Make AI context compaction global (#41317) 2026-07-14 18:41:37 -03:00
ai_query_params.rb DEV: Switch DE agent to use tools for structure and accuracy (#40315) 2026-06-03 22:08:44 +08:00
data_explorer.rb FIX: render JSONB results as JSON (#41255) 2026-06-29 15:43:31 +10:00
engine.rb
parameter.rb DEV: Enable Style/RedundantParentheses rubocop rule (#40095) 2026-05-19 15:48:09 +02:00
queries.rb PERF: Improve user participation default query (#41676) 2026-07-13 16:15:05 -04:00
query_creator.rb FEATURE: AI-generated DE queries on /new before creation (#39412) 2026-04-22 13:50:26 +08:00
query_group_bookmarkable.rb FIX: Prevent hidden Data Explorer queries leaking via bookmarks (#40327) 2026-05-27 17:25:30 +10:00
query_result_cache.rb FIX: Keep Data Explorer cache index aligned with result TTLs (#41183) 2026-06-25 21:02:20 +08:00
query_result_downloader.rb FEATURE: Cache data explorer responses by query and param for quick results (#39118) 2026-04-07 11:57:33 +08:00
query_runner.rb UX: Data explorer improvements (#40605) 2026-06-05 19:31:37 +08:00
report_generator.rb DEV: Add usage metrics for workflows, automations, and data explorer (#41437) 2026-07-13 11:41:58 +02:00
result_format_converter.rb DEV: Enable Style/RedundantSelf rubocop rule (#40098) 2026-05-19 19:27:45 +02:00
result_to_markdown.rb
statistics.rb DEV: Add usage metrics for workflows, automations, and data explorer (#41437) 2026-07-13 11:41:58 +02:00
validation_error.rb