Skip to content

Added other providers - #4

Merged
alvinliju merged 5 commits into
mainfrom
added-other-providers
Jun 9, 2026
Merged

alvinliju merged 5 commits into
mainfrom
added-other-providers

Conversation

@alvinliju

Copy link
Copy Markdown
Contributor

No description provided.

l3mon and others added 5 commits June 9, 2026 06:42
- claude.go: error on streams that end without message_stop (fixes silent
  mid-turn truncation); add retry/backoff on transient failures; growable
  reader; shared client with header timeout.
- agent.go: split BuildSystem into cached persona + volatile context; per-
  provider persona — non-Claude gets explicit tool-call format examples.
- memory/reflect: behavioral rules now write to a global RULES.md; system
  prompt merges global + project rules.
- SelectMemory: inject only the MEMORY.md entries relevant to the current
  prompt (recency fallback) within a byte budget, instead of dumping the
  whole ever-growing file into every system prompt.
- reindex: track per-source mtime and re-read only changed/new sources,
  dropping deleted ones — no more full corpus rebuild on every search.
Conflicts resolved (ours on top, adopt main's UI):
- code.mimi: deleted (main's intent)
- internal/agent/agent.go: keep 3-arg BuildSystem(cwd, provider,
  recentPrompt) and provider-aware persona; append FORCE_ADDENDUM
  when cfg.Force is set so the main-branch --force flag still works.
- internal/tui/tui.go:
  - imports: keep internal/config (ours) and internal/recovery (main)
  - model struct: keep our providerOverride + awaitingKey, add main's
    sessionList, sessionScroll, selActive, selAnchor, selEnd, hasSel,
    waitingContinue, lastPrompt, beforeMessages, pasteEntities
  - Esc handler: cancel awaitingKey first, then dismiss @/slash menus
  - render: route through m.inputDisplay() (paste-entity aware) and
    keep the awaitingKey asterisk mask on top of it
Co-authored-by: mimicode <mimicode@trymimicode.com>
@alvinliju
alvinliju merged commit 43eefdb into main Jun 9, 2026
7 checks passed
JakeOJeff pushed a commit that referenced this pull request Jun 10, 2026
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