Skip to content

feat(pr-tracker): simplify config to use source channel defaults#203

Merged
LIU9293 merged 2 commits intomainfrom
feat/pr-tracker-simplify-687759
Apr 21, 2026
Merged

feat(pr-tracker): simplify config to use source channel defaults#203
LIU9293 merged 2 commits intomainfrom
feat/pr-tracker-simplify-687759

Conversation

@LIU9293
Copy link
Copy Markdown
Contributor

@LIU9293 LIU9293 commented Apr 21, 2026

Summary

  • Drop the target channel concept; PR tracker polls now post back to the same channel they were scanned from (workspace is already derived from that channel).
  • Drop tracker-level agent override and the global default agent picker. The scheduler now uses the source channel's configured default agent (getChannelAgentProvider), so each channel's agent choice applies uniformly.
  • Poll interval UI switches to minutes (defaults to 30 min). The DB column stays in seconds, so existing installs keep working without a migration.
  • New Switch component replaces the Enable/Disable button per tracker; the three action buttons (Poll now / expand / delete) are shrunk to 32 px squares for a tighter row.
  • Legacy DB columns (agent_provider, target_*, default_agent_provider) are intentionally retained on disk so old rows still load; they're just no longer read or written.

Notes

  • parseTrackerUpdate / parseSettingsUpdate no longer accept agentProvider, defaultAgentProvider, or targetChannelId. Existing clients sending those fields are tolerated (fields are ignored).
  • ode pr-tracker CLI loses --target-channel, --agent, and --set-agent; help + rendering updated.
  • Bumps version to 0.1.36.

Tests

  • bun test → 372 pass, 1 skip, 0 fail
  • packages/web-ui svelte-check → 0 errors

- Remove target channel picker/storage: polls post back to the source
  channel they were scanned from
- Remove tracker-level agent override and global defaultAgentProvider;
  scheduler uses getChannelAgentProvider(sourceChannelId)
- Switch poll interval UI to minutes (30-min default); DB still stores
  seconds so existing rows/migrations aren't touched
- Add Switch UI component; replace per-tracker Enable/Disable button
- Shrink the three per-tracker action buttons to 32px squares
- Legacy DB columns (agent_provider, target_*) kept for backwards compat
- Bump version to 0.1.36
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a06e9a4f56

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/web-ui/src/lib/components/ui/switch.svelte
Codex review caught that the inner <button on:click={toggle}> in Switch
doesn't forward clicks to the parent component, so the PR tracker
page's on:click handler for the enable switch never ran — the UI
toggled locally but no PUT was sent to the backend. Dispatch a
typed 'change' event with the new checked value and listen via
on:change in the caller.
@LIU9293 LIU9293 merged commit 447dda9 into main Apr 21, 2026
2 checks passed
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