summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/useToolScheduler.test.ts
AgeCommit message (Collapse)Author
2025-08-20Remove unused attribute (#6661)Tommaso Sciortino
2025-08-19Log all session metadata (#6423)owenofbrien
2025-08-15Revert #6088 (#6328)Gal Zahavi
2025-08-15feat(core): Migrate MockTools to declarative pattern. (#6197)joshualitt
2025-08-14feat(core): refactor shell execution to use node-pty (#6088)Gal Zahavi
2025-08-13Zed integration schema upgrade (#5536)Agus Zubiaga
Co-authored-by: Conrad Irwin <[email protected]> Co-authored-by: Ben Brandt <[email protected]>
2025-08-06feat(core): Introduce `DeclarativeTool` and `ToolInvocation`. (#5613)joshualitt
2025-07-21Various spelling improvements (#3497)Josh Soref
Signed-off-by: Josh Soref <[email protected]> Co-authored-by: Sandy Tao <[email protected]>
2025-07-17Zed integration (#4266)Conrad Irwin
Co-authored-by: Agus Zubiaga <[email protected]> Co-authored-by: Ben Brandt <[email protected]> Co-authored-by: mkorwel <[email protected]>
2025-07-11Summarize tool call outputs using tool specific summarizers (#3745)anj-s
2025-07-04Add and improve JSDoc comments for core tool methods (#3128)moon jooho
2025-06-25fix: prepublish changes to package names (#1420)Brandon Keiji
2025-06-23Ensure telemetry events are flushed immediately (#1344)Jerop Kipruto
The previous implementation used `flushIfNeeded` to batch most telemetry events, but it was not reliably sending them, leading to data loss. Notably, the `startSession` event, which already used `flushToClearcut`, was working correctly, indicating an issue with the batching logic itself. This change replaces all calls to `flushIfNeeded` with `flushToClearcut` to align all event logging with the working `startSession` implementation and ensure that events are sent immediately. This prioritizes the reliability of data collection over network efficiency. This is a temporary solution to prevent further data loss. The underlying issue with the batching mechanism in `flushIfNeeded` should be investigated and fixed in the future, at which point this change can be reverted.
2025-06-23refactor: rename `disableDataCollection` to `dataCollectionEnabled` (#1319)Jerop Kipruto
Renames the `disableDataCollection` flag to the more intuitive and positive `dataCollectionEnabled`. This change improves code clarity by avoiding double negatives and making the purpose of the flag more direct. The logic has been inverted wherever the flag is used to accommodate the new naming convention. Using a suffix like `"Enabled"` follows a common convention that improves readability. - A condition like `if (dataCollectionEnabled)` reads like a natural language sentence ("if data collection is enabled"), which reduces cognitive load. - Distinguishes the boolean flag (representing a state) from potential functions that would perform an action (e.g., `enableDataCollection()` or `disableDataCollection()`), avoiding ambiguity between checking a value and calling a function. #750
2025-06-22Clearcut logging - initial implementation (#1274)owenofbrien
Flag-guarded initial implementation of a clearcut logger to collect telemetry data and send it to Concord for dashboards, etc.
2025-06-08fix mcp timeouts and missing description on mcp errors (#868)Olcan
2025-06-08fix(tool-scheduler): Correctly pipe cancellation signal to tool calls (#852)N. Taylor Mullen
2025-06-07refactor: rename gemini-code to gemini-cli (#822)cperry-goog
2025-06-04refactor(core): Centralize tool response formatting (#743)N. Taylor Mullen
2025-06-02feat: Add --yolo mode that automatically accepts all tools executions (#695)Tolik Malibroda
Co-authored-by: N. Taylor Mullen <[email protected]>
2025-06-01refactor: Centralize tool scheduling logic and simplify React hook (#670)N. Taylor Mullen
2025-05-31Test: Add comprehensive tests for useToolScheduler hookTaylor Mullen
- Introduces a suite of tests for the hook, covering various scenarios including: - Successful tool execution - Tool not found errors - Errors during - Errors during tool execution - Tool confirmation (approved and cancelled) - (currently skipped) - Live output updates - (currently skipped) - Cancellation of tool calls (before execution and during approval) - (currently skipped) - Execution of multiple tool calls - Preventing scheduling while other calls are running - (currently skipped) - Includes tests for the utility function to ensure correct mapping of tool call states to display objects. - Mocks dependencies like , , and individual instances. - Uses fake timers to control asynchronous operations. Note: Some tests involving complex asynchronous interactions (confirmations, live output, cancellations) are currently skipped due to challenges in reliably testing these scenarios with the current setup. These will be addressed in future work.
2025-05-29Refactor read-file and support images. (#480)Jacob Richman