Commit graph

16 commits

Author SHA1 Message Date
Jazzcort
712b7bcfd5 Fix: Refactor dependency injection for settings and clients
This commit refactors how IdeSettings and ControlPlaneClient are accessed throughout
the configuration system to improve state management and reduce coupling.

Previously, ideSettingsPromise was passed down from the top-level ConfigHandler
through various profile loaders and clients. This created a rigid dependency chain
and required manual promise replacement when settings were updated. Similarly,
downstream components could hold onto stale instances of ControlPlaneClient after a
change in authentication state.

The key changes are:
  - Removed ideSettingsPromise prop drilling: Components that require IDE settings
    now fetch them directly from the IDE object (ide.getIdeSettings()) when
    needed.

  - Updated globalLocalProfileManager during every cascadeInit: This ensures it
    always holds the most recent ControlPlaneClient, preventing issues with stale
    client objects after re-authentication.

  - Simplified constructors: The constructors for ConfigHandler, ControlPlaneClient,
    and various loaders have been simplified to reflect these changes, primarily by
    passing the IDE object directly instead of its derived promises.
2025-09-03 09:15:47 -04:00
Patrick Erichsen
72001f92f0 Update fixtures.ts 2025-07-11 21:41:56 -07:00
Patrick Erichsen
2768540f96 chore: add ideInfo headers to hub reqs 2025-07-11 21:25:10 -07:00
Owen W. Taylor
3553dfaae4 Add rich logging of LLM interactions
Instead of treating LLM logging as simply writing lines of text
sequentially, emit a stream of typed data objects that include
rich information about the interaction, such as timestamps,
message types, tool calls, etc.

These are then collected by a new custom webview in the vscode
extension (the "Continue Console"), allowing a user or developer
to browse through the different interactions and view them in detail.
In progress interactions are now streamed live, instead of being held back
to avoid concurrency issues.

This webview could be also exposed for IntelliJ or file logging
could be reimplemented on top of the new framework.
2025-04-07 14:11:38 -04:00
Nate
e34a56748d fix tsc errors 2025-02-18 15:46:12 -08:00
Nate
468acacd0a vscode setting for platform 2025-01-24 02:00:44 -08:00
Dallin Romney
349a965e79 core tests cleanup 2024-12-06 00:41:13 -08:00
Dallin Romney
7dd3f8b6aa chat describer and commands/util 2024-12-05 19:45:32 -08:00
Dallin Romney
68dfb3b46a prompt file iteration 2024-12-05 16:05:27 -08:00
Dallin Romney
af5d38e653 move some stuff back 2024-12-04 17:33:58 -08:00
Dallin Romney
a58b0ff7b5 revert fixtures location for less file changes 2024-12-04 17:31:38 -08:00
Dallin Romney
d19411aa0b revert testdir location for less file changes 2024-12-04 17:30:13 -08:00
Dallin Romney
02f40d04bd core test cleanup 2024-12-04 17:21:04 -08:00
Patrick Erichsen
5406d0e1a2 test: colocate tests in core 2024-08-16 10:35:40 -07:00
Patrick Erichsen
978f387922 testing: add indexing update tests 2024-08-14 11:30:36 -07:00
Nate Sesti
5b2a64f6a1 new tests for ConfigHandler 2024-08-11 00:21:08 -04:00