Repository navigation
Commit 660d626
fix: restore watch defaults and align agent status, undo, cron fork, and completion budget behavior (#336)
## Requirement or Bug
Restore filesystem-watch defaults and land a batch of session-behavior
fixes (agent status, undo, cron forks, completion budget).
## Bug Reproduction Steps
N/A (behavior restore + fixes).
## Root Cause
Watch was flipped off by default when it should not have been;
permission-mode changes never reached agent status consumers; undo left
a stale interruption reminder; forks inherited the source session's cron
tasks; a default completion token cap silently truncated model output.
Each fixed at the cause.
## Code Changes
- Filesystem watch defaults back on (`[watch] enabled = false` /
`PYTHINKER_CODE_WATCH=0` to disable).
- `setMode` publishes permission mode on `AgentStatusUpdated`.
- NotifyUser nudges only for clients with an updates panel
(`notifyUserAvailable` host gate).
- Undo removes a turn's interruption reminder with the turn.
- Forks clear inherited cron tasks and surface a one-shot notice.
- The default completion token cap is gone; set `maxCompletionTokens` in
modelOverrides to cap output. `usedContextTokens` reads the tokenizer
size.
## Impact Scope
- `packages/agent-core-v2` (watch, nudge, permission mode, interruption
reminder, cron runtime, usage/traits/requesters), `apps/vis` event
types, docs (`config-files.md`).
- Tests: suites for each behavior above; full suite green locally.
## Checklist
- [x] I have read the
[CONTRIBUTING](https://github.com/PyModel/pythinker-code/blob/main/CONTRIBUTING.md)
document.
- [x] I have linked a related issue (external PRs: issue must have a
maintainer's `/approve`). — No public issue; maintainer work.
- [x] I have added tests that prove my feature works.
- [x] Ran `gen-changesets` skill, or this PR needs no changeset.
- [x] Ran `gen-docs` skill, or this PR needs no doc update.
---------
Co-authored-by: Test User <test@example.test>1 parent 4ef53e0 commit 660d626
239 files changed
Lines changed: 1800 additions & 832 deletions
File tree
- .changeset
- apps
- desktop
- pythinker-code
- dist-web
- assets
- src
- cli/v2
- tui
- components/dialogs
- test/tui
- components/dialogs
- vis/server/src/lib
- docs
- configuration
- customization
- packages
- agent-core-v2
- docs
- src
- agent
- interruptionReminder
- llmRequester
- permissionMode
- usage
- app
- config
- mcpRegistry
- features
- cron
- goal
- notify
- human
- llm-pythinker
- llm
- protocol
- requester/bases
- anthropic
- openai-responses
- openai
- test
- llm
- utils
- utils
- llm-adapter
- model
- provider
- program
- session/agentLifecycle
- workspace/workspaceTrust
- test
- agent
- fullCompaction
- loop
- permissionMode
- app
- mcpManagement
- mcpRegistry
- workspaceAliases
- features
- cron
- notify
- plan
- llm-adapter
- model
- protocol
- workspace
- workspaceAgentProfileLoader
- workspaceTrust
- agent-gateway
- src/routes
- test
- node-sdk
- src
- test
- scripts/security
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments