Skip to content

refactor: replace agent type with context and agent ids#779

Merged
chubes4 merged 1 commit intomainfrom
refactor/remove-agent-type-context
Mar 10, 2026
Merged

refactor: replace agent type with context and agent ids#779
chubes4 merged 1 commit intomainfrom
refactor/remove-agent-type-context

Conversation

@chubes4
Copy link
Member

@chubes4 chubes4 commented Mar 10, 2026

Summary

  • remove agent_type as a runtime concept and replace chat/runtime/API/CLI flows with context plus explicit agent_id
  • migrate chat persistence to use context, keep only migration-only legacy handling for the old agent_type column, and restore the logs UI to tab by accessible agents using agent_id
  • add agent-aware model resolution so chat, pipeline, and system execution can resolve model policy as agent context override -> agent default -> global context override -> global default

Details

  • added PluginSettings::resolveModelForAgentContext()
  • wired async system tasks to honor agent-specific system context models
  • added per-agent AI model policy controls in the agent edit UI
  • fixed cleanup issues found during review: broken log tools, over-broad logs tab invalidation, redundant chat agent lookup, legacy agent_models fallback for agent config, and boot-time chat schema migration safety

Validation

  • targeted php -l checks passed on the changed PHP files
  • repo-wide grep confirmed remaining agent_type references are limited to chat DB migration code

@github-actions
Copy link

github-actions bot commented Mar 10, 2026

Homeboy Results — data-machine

Lint

Failure Digest

Lint Failure Digest

Autofixability classification

  • Overall: human_needed
  • Autofix enabled: no
  • Autofix attempted this run: no
  • Human-needed failed commands:
    • lint
  • Potentially auto-fixable failed commands (if autofix enabled):
    • lint
  • Autofix is currently disabled. Commands with autofix support in this run: lint

Machine-readable artifacts

  • homeboy-lint-summary.json
  • homeboy-test-failures.json
  • homeboy-audit-summary.json
  • homeboy-autofixability.json

⚡ Scope: changed files only

lint (changed files only)

Test

⚡ Scope: changed files only

test (changed files only)

Audit

⚡ Scope: changed files only

audit (changed files only)

Tooling versions
  • Homeboy CLI: homeboy 0.74.1
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: unknown
  • Action: Extra-Chill/homeboy-action@v1

Homeboy Action v1

@chubes4 chubes4 merged commit 7a69ba8 into main Mar 10, 2026
2 of 3 checks passed
@chubes4 chubes4 deleted the refactor/remove-agent-type-context branch March 10, 2026 15:17
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