Skip to content

Rewrite: scaffold workspace and core agent test - #2

Merged
hzt818 merged 12 commits into
masterfrom
rewrite/rust-from-scratch
May 31, 2026
Merged

Rewrite: scaffold workspace and core agent test#2
hzt818 merged 12 commits into
masterfrom
rewrite/rust-from-scratch

Conversation

@hzt818

@hzt818 hzt818 commented May 30, 2026

Copy link
Copy Markdown
Owner

This draft PR introduces a new rewrite/ workspace scaffold for a clean Rust rewrite. Includes minimal crates (core, cli, tui, ai, tools, storage) and a unit test for a SimpleAgent.

Work so far:

  • workspace scaffold
  • core agent test
  • CI workflow

This PR is a draft while the rewrite progresses.

hzt818 and others added 3 commits May 30, 2026 16:24
Add ContextStore trait, SharedContext alias, SQLite-backed store, and integration tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@hzt818

hzt818 commented May 30, 2026

Copy link
Copy Markdown
Owner Author

Added ContextStore trait plus in-memory and SQLite-backed implementations in coder-core. Included unit and integration tests; all coder-core tests pass locally. Pushed to branch rewrite/rust-from-scratch (commit 3012516). Next steps: extract Context into a shared crate, add provider adapters, and expand the tool registry. Please review the changes in the draft PR and advise reviewers or priority for next work.

hzt818 and others added 4 commits May 30, 2026 18:10
Move ContextStore and SqliteContext into new crate coder-context; update coder-core to depend on coder-context.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…e coder-core to use coder-ai Provider

Add OpenAIProvider skeleton and re-export Provider from coder-core.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…nses; return mock when no API key

Add ChatCompletion request/response handling and error mapping; keep tests mock-friendly.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…e invalid workspace features

Add features to coder-ai and ensure workspace resolver set; this fixes CI feature parsing and clippy/test runs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@hzt818

hzt818 commented May 30, 2026

Copy link
Copy Markdown
Owner Author

CI failures observed in the workflow. Pushed fixes:

  • Added feature declarations to coder-ai Cargo.toml
  • Set workspace resolver to 2 and removed invalid workspace features from virtual manifest
    Please re-run CI or review the updated branch. I will monitor and fix remaining failures if any remain.

hzt818 added 4 commits May 30, 2026 20:37
…s, ToolRegistry Default; reorder core tests\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… add toml and tempfile deps\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…tests; wire dependency\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ntegration test; wire CLI to use Provider; update deps\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@hzt818
hzt818 marked this pull request as ready for review May 31, 2026 01:03
@hzt818
hzt818 merged commit e39ebca into master May 31, 2026
5 of 7 checks passed
@hzt818
hzt818 deleted the rewrite/rust-from-scratch branch May 31, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant