Skip to content

Add AI assignment inventory settings#587

Merged
atomantic merged 2 commits into
mainfrom
codex/ai-assignment-inventory
Jun 1, 2026
Merged

Add AI assignment inventory settings#587
atomantic merged 2 commits into
mainfrom
codex/ai-assignment-inventory

Conversation

@atomantic
Copy link
Copy Markdown
Owner

Summary

  • add a Settings > AI Assignments page for central provider/model inventory
  • expose settings-backed API endpoints to list and update global/record AI assignments
  • include provider migration controls and runtime call-site inventory

Verification

  • git diff --check
  • node --check server/services/aiAssignments.js
  • node --check server/routes/settings.js

Notes

  • Vitest, ESLint, and the dev server could not run in this worktree because node_modules are not installed (missing vitest/vite/@eslint/js/server packages).
  • Local review completed before PR creation; one React hook cleanup was fixed before commit.

atomantic added 2 commits May 31, 2026 19:01
… bad-id writes, preserve in-flight drafts

Self-review fixes for the AI assignment inventory page:

- Add the missing NAV_COMMANDS entry for /settings/ai-assignments so the
  page is reachable via ⌘K and voice ui_navigate (every other settings
  sub-tab is registered; the fail-fast guards only catch malformed
  entries, not omissions). Root cause: documented "every new page →
  nav manifest" step was skipped.
- updateAiAssignment now throws ServerError with 400/404 instead of a
  plain Error (which mapped to 500) for unknown/blank assignment ids and
  missing provider/agent/stage targets.
- Gate the cos.task.* branch on getScheduleStatus().tasks — its
  create-if-missing updateTaskInterval would otherwise write a junk
  schedule record for an arbitrary id. Surface a missing feature agent
  (updateFeatureAgent returns null) as a 404 instead of silent success.
- AiAssignmentsTab: saving one row (or a bulk migration) no longer
  discards unsaved edits in other rows — reconcileDrafts resets only the
  rows actually saved and preserves the rest.
- Add aiAssignments.test.js covering the dispatch table and the new guards.
@atomantic atomantic merged commit fc27314 into main Jun 1, 2026
2 checks passed
@atomantic atomantic deleted the codex/ai-assignment-inventory branch June 1, 2026 03:09
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