Skip to content

chore(chat): delete the deprecated gaia-agent-chat shim - #7035

Merged
kovtcharov-amd merged 4 commits into
amd:mainfrom
kovtcharov:kalin/delete-chat-agent-shim
Nov 10, 2026
Merged

kovtcharov-amd merged 4 commits into
amd:mainfrom
kovtcharov:kalin/delete-chat-agent-shim

Conversation

@kovtcharov

Copy link
Copy Markdown
Contributor

ChatAgent moved into the flagship package in v0.25.4, and the old gaia-agent-chat package stayed behind as a re-export shim for one release. That release has shipped, so the shim is gone, along with CI steps, release tooling and launch scripts that still installed it. Sessions saved under the old chat, doc and file agents still reopen on GAIA.

This also fixes a problem the removal would otherwise have hidden. A leftover gaia-agent-chat install registers those old ids itself, and a registered id wins over the alias that sends them to the flagship. Upgrading users could have reopened old sessions on stale shim code. The registry now ignores an installed package that claims a retired id, and logs a warning naming the package.

Closes #6103

Test plan

  • pytest tests/unit/agents/test_registry.py: 66 passed. That includes the new test showing a fake gaia-agent-chat 0.1.0 can't claim chat, doc, file or chat-lite. It ran in a venv that still has a stale shim installed, which used to fail 5 builtin-registration tests.
  • Registry, install hints, release versions, wheel packages, chat contracts, dev launch scripts, hub publish and error tests: 267 passed.
  • tests/unit/agents and the touched test files before the rebase: 6,819 passed. The 5 failures there came from that stale shim install and pass with the guard.
  • git grep finds no gaia_agent_chat, hub/agents/chat or ChatAgentLite outside changelog history and plans.
🔍 Technical details
  • Removed hub/agents/chat/ (including ChatAgentLite and python -m gaia_agent_chat.app) and the chat entries in setup.py, util/release_versions.py and util/list_agent_packages.py.
  • Retargeted to the flagship package: test_chat_agent.yml, eval_scenario_lane.yml, build_flagship_sidecar.yml, install_hints, errors.py, every dev launch script's PYTHONPATH, and .vscode/launch.json (now gaia chat).
  • Registry guard: _discover_installed_agents skips an entry point whose id is in _LEGACY_ID_ALIASES, before the "already registered" check, so canonical_id falls through to the alias. LEGACY_CLEANUP_IDS can't do this, because it only cleans copies the desktop app seeded in ~/.gaia/agents.
  • Docs: CLAUDE.md, hub/agents/README.md, reference/dev.mdx, spec/chat-agent.mdx, and a Breaking Changes line in the v0.26.0 release notes.
  • No prompt, tool or model change, so no eval category is affected.

ChatAgent has shipped in the flagship package since v0.25.4, so the
gaia-agent-chat re-export shim has served its one release and only kept
stale install paths, version targets and CI installs alive.

- Remove hub/agents/chat/ (including ChatAgentLite and the standalone
  gaia_agent_chat.app entry) and drop it from AGENT_WHEEL_PACKAGES,
  install hints, release version targets and framework-path filtering.
- Stop installing and importing it in the chat-agent, eval-lane and
  sidecar workflows, the dev launch scripts and the VS Code config.
- Retarget tests that used the shim to the flagship package, and delete
  the ones that only covered shim-owned code.
- The legacy chat/doc/file ids still resolve to the flagship. A leftover
  gaia-agent-chat install is now ignored with a warning naming the
  package, instead of its entry points taking those ids over.

Closes amd#6103
@github-actions github-actions Bot added documentation Documentation changes dependencies Dependency updates devops DevOps/infrastructure changes tests Test changes agents agent::email Email agent changes sidecar Agent sidecar contract / harness labels Nov 9, 2026
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Verdict: Approve

This removes the old gaia-agent-chat package, which only re-exported the flagship and was kept for one release. CI, release tooling, launch scripts and docs no longer install or mention it. It also fixes something the removal would have hidden: if an upgraded user still has the old package installed, it can no longer take over the retired chat / doc / file ids, so old sessions keep reopening on the flagship and a warning names the leftover package. I found no blocking issues.

Real-world evidence

N/A: the evidence bundle wasn't produced for this run. The change removes a package and its tooling and adds a registry guard; it doesn't touch a user-facing CLI, API or UI. The verdict rests on static review plus the unit-test results in the PR description. I ran python util/release_versions.py --check locally and all 18 remaining version fields match their source. pytest isn't installed on this runner, so I couldn't re-run the tests.

🔍 Technical details

Issues Found

🟢 The guard imports the stale package before rejecting it (src/gaia/agents/registry.py:816). The legacy-id check runs after _load_entry_point_registration, so a leftover shim is still imported on every discovery. If that old shim fails to import against the new flagship, the user gets a generic "Failed to load agent entry point chat" traceback warning instead of the clear "retired id, uninstall the package" message. It's optional, but you could also check entry_point.name in self._LEGACY_ID_ALIASES before loading. Keep the post-load check too, because the registration id can differ from the entry-point name.

🟢 The held machinery is now dead (util/release_versions.py:81, :223, :314). The only held= target was the chat __version__, so Target.held and the report.held printing have no users. Either delete them or keep them deliberately for the next held field. Your call.

Checks run

  • Sibling paths: git grep for gaia_agent_chat, hub/agents/chat, gaia-agent-chat and ChatAgentLite outside changelogs and plans. What remains is test fixture data (test_check_ci_path_coverage.py, workers/agent-hub tests, wheel_builder.py), provenance notes in flagship test docstrings, and the guard's own comment. There are no freeze, installer, TUI or Electron references, and chat-lite survives only as a registry alias, which is correct.
  • Doc drift: docs/playbooks/chat-agent/part-1-getting-started.mdx:111 still says how to install the chat package, but scoped to "releases up to 0.25.3 … from the tag", so it's accurate as history. docs/spec/agent-hub-restructure.mdx and the tests/agents/chat/… paths in the mixin specs were already stale before this PR and belong to an older design doc, not to this change.
  • Known bug classes: nothing applies. The change adds no subprocesses, waits, shared-file writes or startup ordering.

Strengths

  • The registry guard closes a real upgrade hazard that deleting the package alone would have hidden, and the parametrized test models the actual leftover-install case (dist.name="gaia-agent-chat").
  • The cleanup is thorough across CI workflows, release_versions.py targets, setup.py AGENT_WHEEL_PACKAGES, install hints and every dev PYTHONPATH, and the breaking change is called out in the v0.26.0 notes with the replacement import.

…eld versions

A stale gaia-agent-chat that fails to import against the new flagship now gets
the clear "retired id" warning instead of a load traceback. The release
versioner's held-field mechanism had no target left once the chat version went.
@kovtcharov

Copy link
Copy Markdown
Contributor Author

The macOS arm64 real-engine failure is runner memory, not this change: gaia init couldn't test the embedding model because the hosted runner had 1.1 GB free and the model needs about 1.3 GB. Build complete fails because it includes that job. A rerun on a less loaded runner should pass.

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 10, 2026
Merged via the queue into amd:main with commit 1858ecb Nov 10, 2026
101 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the kalin/delete-chat-agent-shim branch November 10, 2026 03:15
kovtcharov added a commit to kovtcharov/gaia that referenced this pull request Nov 11, 2026
Main has moved a long way since the last update; this keeps the branch's
opt-in eviction on top of it. Nothing main ships duplicates it: main still
carries only the defaults-on overflow retry from amd#5396.

- The chat package was folded into the flagship (amd#7035): the eviction
  settings move into gaia_agent/chat_agent.py, beside main's new
  resend_reasoning_across_requests, and the CHANGELOG entry moves to the
  gaia npm package's Unreleased section.
- Kept main's tool_scope argument and its unsaved-memory nudge next to the
  re-read reminder.
- Agent UI: main's timeline (amd#5966) hides finished status rows, so a
  context notice now draws its own row and stays after the turn ends.
  Status handling moved into applyStatusEvent, so the notice is added there.
- The closing-answer overflow tests from amd#6875 now patch the evictor's
  counter, which this branch sizes the trim with.
- Two second-turn tests now run at a 64K window: at 16K, main's history
  fitting drops the whole earlier turn, so there is nothing to replay.
kovtcharov-amd added a commit that referenced this pull request Nov 12, 2026
Main moved 865 commits: v0.26.0 RCs, the chat agent folded into the
flagship (#6139, #7035), #5197 fixed on main, and the nightly patch check
taught the next-minor line (#6945).

- Flagship version files follow core (0.26.0); the chat targets, held
  lines and chat floors go, since that package no longer exists.
- The flagship's SPEC.md version header is now a stamped target, so it
  stops drifting from the package version.
- The eval-baseline workflow keeps main's version; #5197 already landed.
- v0.26.0 keeps main's curated notes, not the stub.
- nightly-patch-release.yml stays retired, with release_version_state.py
  and the tests that read the workflow: once the bot moves main to the
  next minor before its rc1, the nightly would file a mismatch issue
  every night.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent::email Email agent changes agents dependencies Dependency updates devops DevOps/infrastructure changes documentation Documentation changes sidecar Agent sidecar contract / harness tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(chat): delete the chat agent package

2 participants