Skip to content

core 4.0.4#79

Merged
deepagent-ai merged 2 commits into
mainfrom
dev
Jul 19, 2026
Merged

core 4.0.4#79
deepagent-ai merged 2 commits into
mainfrom
dev

Conversation

@deepagent-ai

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Please provide a description of the issue, the changes you made to fix it, and why they work. It is expected that you understand why your changes work and if you do not understand why at least say as much so a maintainer knows how much to value the PR.

If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!

How did you verify your code works?

Screenshots / recordings

If this is a UI change, please include a screenshot or recording.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

thomas-yanga and others added 2 commits July 18, 2026 01:06
## Summary

Completes the downstream sync left over from the deepagent context
pipeline
restructure (f578e4f / eeeac7e), and fixes two regressions found while
verifying the Wave 2–5 CLI commands against a live daemon.

- Drop orphaned `oversight`/`webhook` HTTP API modules whose service
layers
were removed by the restructure; the orphaned files broke typecheck and
the
  CLI `oversight` command targeted endpoints that no longer exist.
- Fix `dacode run` hanging after completion: the session event stream is
now
  aborted on `session.status idle`, cancelling the underlying SSE fetch
  connection (the generated SSE client never cancels the fetch in its
  generator `finally`, leaking the socket and pinning the event loop).
- Default missing `apiKey` in the provider discovery cache fetch
wrapper.
- Restore 6 V4 feature flags (`v4PanelAutoConvene`,
`v4AgentPushEnabled`,
  `v4EventDrivenIm`, `v4MultiAgentRuntime`, `v4EventDrivenArchive`,
  `v4Steering`) still consumed by app capabilities and test RuntimeFlags
  overrides.
- Complete the goal-driver API sync started in eeeac7e: inline the
single-tick
logic in `goal-tick-port` (pause/stop check + `loop.tick` + status
publish),
  remove dead steer-relay wiring and dead `maxFilesChanged` /
  `maxTokensPerHour` gates, and delete/prune tests that targeted removed
APIs (`goal-steer`, `overflow`, `plan-status-cache`, `httpapi-webhook`,
plus pruned blocks in `steer`, `multi-agent-runtime`, `model-discovery`,
  `goal-tick-cold-recovery`).

## Test plan

- `bun typecheck` across the workspace: deepagent-code package 75 → 0
errors,
  turbo typecheck 15/15 green.
- Manual CLI verification (Wave 2–5 commands): `serve --register` starts
and
registers cleanly; `run` exits normally (~36s, previously hung past
150s);
  `debug agents`, `agent list`, `models`, `session list`, `packs list`,
  `service status` all pass.
- Affected tests (`steer`, `goal-tick-cold-recovery`,
`multi-agent-runtime`,
  `model-discovery`): 41 pass / 4 fail — the 4 failures are pre-existing
runtime-behavior leftovers from the restructure (baseline was 8 failures
on
the same files), unrelated to typecheck errors and noted for follow-up.
### Issue for this PR

Closes #

### Type of change

- [ ] Bug fix
- [ ] New feature
- [ ] Refactor / code improvement
- [ ] Documentation

### What does this PR do?

Please provide a description of the issue, the changes you made to fix
it, and why they work. It is expected that you understand why your
changes work and if you do not understand why at least say as much so a
maintainer knows how much to value the PR.

**If you paste a large clearly AI generated description here your PR may
be IGNORED or CLOSED!**

### How did you verify your code works?

### Screenshots / recordings

_If this is a UI change, please include a screenshot or recording._

### Checklist

- [ ] I have tested my changes locally
- [ ] I have not included unrelated changes in this PR

_If you do not follow this template your PR will be automatically
rejected._

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@deepagent-ai
deepagent-ai merged commit 00fecf4 into main Jul 19, 2026
13 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants