2902 Commits

Author SHA1 Message Date
Mahima Shanware
df8f1a8f03 fix: address review bot feedback on concurrency and error handling
- Reverted the 'isIdle' guard in AppContainer.tsx to ensure slash commands entered while the agent is busy are correctly processed or queued, preventing them from falling through as regular chat text.
- Enhanced the physical path validation in config.ts to gracefully handle 'mkdirSync' failures (e.g. EACCES). The CLI will now log a warning and return the lexically-validated path instead of throwing a misleading 'Security violation' via 'resolveToRealPath'.
2026-04-07 16:40:31 +00:00
Mahima Shanware
432df7982c fix: address final review feedback on context resets and pre-creation path validation 2026-04-07 16:40:31 +00:00
Mahima Shanware
76c28142eb fix(cli): remove /plan extension context hacks and fix dropped queue messages 2026-04-07 16:40:31 +00:00
Mahima Shanware
7ab4c3d61f fix(core,cli): resolve TOCTOU, concurrency, and performance regressions in plan resolution 2026-04-07 16:40:31 +00:00
Mahima Shanware
6559fdbc31 fix(core,cli): address review findings for plan dir resolution and security
This commit addresses several critical findings from the review bot:

- **Security:** Implemented defense-in-depth symlink resolution. Removed insecure string-based fallbacks in `Storage.getPlansDir` and added a mandatory `isSubpath` validation AFTER directory creation in `Config.getPlansDir` to prevent TOCTOU traversal attacks.
- **Architecture:** Fixed a race condition where active extension context was mutated synchronously in `AppContainer`, potentially corrupting concurrent background tasks. Mutation now occurs within the command execution pipeline.
- **Robustness:** Switched to canonical path checking for `plan` command detection to support aliases and subcommands.
- **Regressions:** Added a `planEnabled` guard to prevent unwanted directory creation when the planning feature is disabled.
- **Validation:** Added exhaustive unit tests covering sequential context switching, shared directory deduplication, and symlink security edge cases.
2026-04-07 16:35:24 +00:00
Mahima Shanware
b2f7c157ce fix(cli): consistently clear sticky extension context
This fixes a bug where the active extension context would remain sticky when a user switched from an extension command to a standard non-plan command, or to an extension without a plan directory.

The context is now correctly reset to undefined when an extension command without a plan directory is executed, preventing subsequent plan mode invocations from incorrectly targeting the previous extension's folder.
2026-04-07 16:35:23 +00:00
Mahima Shanware
0a8195fb3a fix(core): address extension context stickiness and symlink path resolution
This commit addresses two bugs identified during review:

1. Cleared the sticky `activeExtensionContext` when the standard `/plan` command is executed, ensuring subsequent prompts correctly target the default global plan directory.
2. Fixed a path resolution regression in `Storage.getPlansDir()` by constructing the fallback ENOENT path directly against the real project root. This prevents `isSubpath` validation failures and potential traversal vulnerabilities when the project root is a symlink.
2026-04-07 16:35:23 +00:00
Mahima Shanware
058b5e31b4 feat(cli): wire active extension context into slash command routing
Extracts the extension context from slash commands based on their registered metadata and sets it as the active context in the Config before execution. This enables the backend to dynamically route plan directories based on the extension that owns the invoked command.
2026-04-07 16:35:23 +00:00
Abhijit Balaji
0025978d76
feat(cli): support selective topic expansion and click-to-expand (#24793) 2026-04-07 15:00:40 +00:00
Christian Gunderman
d2b775f9a7
Add an eval for and fix unsafe cloning behavior. (#24457) 2026-04-07 03:17:44 +00:00
Spencer
0a8da988ed
fix(cli): ensure skills list outputs to stdout in non-interactive environments (#24566) 2026-04-07 02:40:23 +00:00
Tommaso Sciortino
df67f973ed
fix(cli): respect global environment variable allowlist (#24767) 2026-04-06 22:17:55 +00:00
Christian Gunderman
7872d6d7fe
fix(ui): improve narration suppression and reduce flicker (#24635) 2026-04-06 21:18:59 +00:00
Abhijit Balaji
ad98294352
Revert "feat(core,cli): prioritize summary for topics (#24608)" (#24777) 2026-04-06 20:33:18 +00:00
Dev Randalpura
2353a6d253
fix(ui): fixed auth race condition causing logo to flicker (#24652) 2026-04-06 20:17:05 +00:00
Tommaso Sciortino
c6a9d3de13
fix(cli): remove -S from shebang to fix Windows and BSD execution (#24756) 2026-04-06 19:06:56 +00:00
Jacob Richman
70f6d6a992
split context (#24623) 2026-04-06 17:20:38 +00:00
cynthialong0-0
c96cb09e09
feat(cli): add role specific metrics to /stats (#24659) 2026-04-06 16:20:48 +00:00
Sri Pasumarthi
15298b28c2
feat(acp): add support for /about command (#24649) 2026-04-04 07:42:27 +00:00
Gal Zahavi
7311e242ec
feat(cli): enhance tool confirmation UI and selection layout (#24376) 2026-04-04 01:32:35 +00:00
Gal Zahavi
21a3925f99
docs: update sandboxing documentation and toolSandboxing settings (#24655) 2026-04-04 01:26:41 +00:00
Jacob Richman
ec35ebbe57
fix(core): detect uninitialized lines (#24646) 2026-04-04 00:51:29 +00:00
Christian Gunderman
4a040931ef
Fix restoration of topic headers. (#24650) 2026-04-03 23:50:38 +00:00
Jacob Richman
d5a5995281
feat(cli) Scrollbar for input prompt (#21992) 2026-04-03 22:10:04 +00:00
Jarrod Whelan
3f12c1d7c7
feat(cli): enable compact tool output by default (#24509) (#24510) 2026-04-03 17:59:12 +00:00
Jacob Richman
61719a3926
show color (#24613) 2026-04-03 16:53:34 +00:00
Abhijit Balaji
beaa2a968b
feat(core,cli): prioritize summary for topics (#24608) (#24609) 2026-04-03 16:26:38 +00:00
Gal Zahavi
e54eecca51
feat(cli): minimalist sandbox status labels (#24582) 2026-04-03 05:22:21 +00:00
Jacob Richman
1f5d7014c6
feat(ui): enable "TerminalBuffer" mode to solve flicker (#24512) 2026-04-03 00:39:49 +00:00
Dev Randalpura
9d741abdba
fix(ui): fixed table styling (#24565) 2026-04-02 22:52:25 +00:00
Dan Zaharia
29caa52bb7
fix(ui): hide model quota in /stats and refactor quota display (#24206) 2026-04-02 20:49:14 +00:00
Adam Weidman
6fb58bd31f
feat(cli): migrate nonInteractiveCli to LegacyAgentSession (#22987) 2026-04-02 20:21:40 +00:00
Aashir Javed
77027dff82
fix(cli): clear stale retry/loading state after cancellation (#21096) (#21960)
Co-authored-by: Aashir Javed <Aaxhirrr@users.noreply.github.com>
Co-authored-by: Dev Randalpura <devrandalpura@google.com>
2026-04-02 19:44:39 +00:00
ruomeng
c0dfa1aec3
Enable 'Other' option for yesno question type (#24545) 2026-04-02 19:42:53 +00:00
Sri Pasumarthi
b80234aa3e
fix(acp): handle all InvalidStreamError types gracefully in prompt (#24540) 2026-04-02 17:16:36 +00:00
Jacob Richman
efbddcbf98
Update ink version to 6.6.7 (#24514) 2026-04-02 16:42:52 +00:00
joshualitt
e0044f2868
feat(core): Land ContextCompressionService (#24483) 2026-04-02 16:22:04 +00:00
Gaurav
beff8c91aa
fix(browser): handle computer-use model detection for analyze_screenshot (#24502) 2026-04-02 15:05:21 +00:00
ruomeng
7b6ab50138
feat(cli): support default values for environment variables (#24469) 2026-04-02 14:38:45 +00:00
Sehoon Shon
44c8b43328
fix(cli): prevent crash in AnsiOutputText when handling non-array data (#24498) 2026-04-02 11:48:17 +00:00
Sehoon Shon
242afd49a1
revert(cli): bring back input box and footer visibility in copy mode (#24504) 2026-04-02 06:54:51 +00:00
Jarrod Whelan
66c07d7296
fix(ui): resolve unwanted vertical spacing around various tool output treatments (#24449) 2026-04-02 06:29:56 +00:00
Jacob Richman
40b73c9447
Fix shell output display (#24490) 2026-04-02 05:53:46 +00:00
Sandy Tao
e446733b53
feat(core): add background memory service for skill extraction (#24274) 2026-04-02 05:05:31 +00:00
Alisa
3344f6849c
Unused error variables in catch block are not allowed (#24487) 2026-04-02 04:33:07 +00:00
Jacob Richman
84936dc85d
Auto configure memory. (#24474) 2026-04-02 03:15:27 +00:00
N. Taylor Mullen
ca78a0f177
fix(cli): ensure agent stops when all declinable tools are cancelled (#24479) 2026-04-01 23:16:34 +00:00
Keith Guerin
cb7f7d6c72
feat(cli): change default loadingPhrases to 'off' to hide tips (#24342) 2026-04-01 23:04:43 +00:00
Adam Weidman
b5f568fefe
feat(config): add experimental.adk.agentSessionNoninteractiveEnabled setting (#24439) 2026-04-01 20:41:38 +00:00
N. Taylor Mullen
4e21e5b8a3
fix(cli): refresh slash command list after /skills reload (#24454) 2026-04-01 19:15:27 +00:00