Files
OpenHands/__tests__/api
1cd45306df Route agent-server calls through TypeScript client (#278)
* Route agent-server calls through TypeScript client

Co-authored-by: openhands <openhands@all-hands.dev>

* Remove obsolete agent-server API wrappers

Use @openhands/typescript-client directly where practical and remove thin src/api wrappers that no longer add domain-specific behavior. Keep app-specific adapter/config/cloud logic in place and update tests to mock typed clients directly.

Co-authored-by: openhands <openhands@all-hands.dev>

* Inline remaining trivial client wrappers

Remove remaining one-line wrappers around @openhands/typescript-client calls in the local conversation and workspace paths. Keep domain-specific API adapters where they still perform cloud routing, response adaptation, caching, or app-specific defaults.

Co-authored-by: openhands <openhands@all-hands.dev>

* Remove more no-op API facades

Delete additional short methods that only returned constants, no-ops, or delegated directly to another adapter. Keep the remaining services focused on paths that still perform cloud routing, response adaptation, client setup, or app-specific behavior.

Co-authored-by: openhands <openhands@all-hands.dev>

* Address review feedback after latest merge

Co-authored-by: openhands <openhands@all-hands.dev>

* Address follow-up TypeScript client review

Co-authored-by: openhands <openhands@all-hands.dev>

* Fix static dev frontend session auth

Co-authored-by: openhands <openhands@all-hands.dev>

* Handle unexpected conversation response shapes

Co-authored-by: openhands <openhands@all-hands.dev>

* Format conversation response handling

Co-authored-by: openhands <openhands@all-hands.dev>

* Sanitize conversation response fields

Co-authored-by: openhands <openhands@all-hands.dev>

* Show conversation load failures full-screen

Co-authored-by: openhands <openhands@all-hands.dev>

* Harden conversation file path handling

Co-authored-by: openhands <openhands@all-hands.dev>

* Guard SDK settings page against malformed schemas

Co-authored-by: openhands <openhands@all-hands.dev>

* Avoid using Vercel origin as default backend

Co-authored-by: openhands <openhands@all-hands.dev>

* Fix preview API fallback behavior

Co-authored-by: openhands <openhands@all-hands.dev>

* Refresh file previews after workspace edits

Co-authored-by: openhands <openhands@all-hands.dev>

* test: stabilize backend selector cleanup

Co-authored-by: openhands <openhands@all-hands.dev>

* Remove unrelated PR changes

Keep the PR scoped to direct agent-server API removal and TypeScript SDK migration by reverting unrelated backend fallback, static dev auth, conversation error UI, SDK settings hardening, and test-only cleanup changes.\n\nCo-authored-by: openhands <openhands@all-hands.dev>

* Add PR 278 agent run GIF

Co-authored-by: openhands <openhands@all-hands.dev>

---------

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: hieptl <hieptl.developer@gmail.com>
2026-05-12 21:32:36 +07:00
..