Repository navigation
feat: name new threads from linked tickets - #8344
Closed
matheustimbo wants to merge 19 commits into
Closed
matheustimbo wants to merge 19 commits into
matheustimbo wants to merge 19 commits into
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Changed
New threads can adopt the title and identifier of a ticket linked in their first user message. Resolution runs asynchronously after the existing provisional title, and compare-and-set metadata updates ensure that a manual rename always wins.
The server supports GitHub Issues, GitLab Issues, Azure DevOps work items, Bitbucket Cloud issues, Jira Cloud/Data Center, and ClickUp tasks. It prefers local CLIs where available, supports explicit per-project account bindings, stores sensitive credentials outside settings.json, and falls back silently on ambiguous links or lookup failures.
Web/desktop and mobile settings expose the global policy, project overrides, account configuration, custom templates, and connection tests. User and internal documentation are included.
Why
Ticket-driven threads are difficult to scan when the generated title paraphrases the prompt instead of preserving the ticket identifier and canonical title. Resolving metadata at the server boundary keeps local CLI authentication and credentials with the environment while providing consistent behavior to every client.
Proposal and design discussion: #8334
This is intentionally submitted despite being an XXL external feature PR so maintainers can evaluate the complete behavior. I am happy to split it along the boundaries proposed in the discussion.
UI Changes
Before: no ticket-title policy, ticket account management, project binding, or connection-test controls.
After: these controls are available under Settings → Integrations → Ticket providers and in project settings on web/desktop, with a dedicated Ticket providers route on mobile. The full flow was manually verified against the fork from a remote Mac. Automated screenshot capture was unavailable in the collaborative preview, so this PR does not claim the screenshot checklist item.
Validation
Checklist
Generated with GPT-5.6-sol through the T3 Code Codex harness.
Note
Medium Risk
Touches orchestration title races, secret persistence for external integrations, and new operate-scoped RPC probes; behavior is heavily tested but the surface area is large.
Overview
Adds ticket-driven thread naming: on a thread’s first turn, the server can look up a single supported ticket link in the user message and asynchronously replace the generated title using environment/project ticket title policy and provider account bindings, with optimistic concurrency (
expectedTitle/titleRevision) so manual renames win over late lookups.Introduces
TicketProviderRegistry(resolve + probe), wires it intoProviderCommandReactorand server startup, and authorizesserverProbeTicketProvider. Server settings now persist ticket-provider secrets outsidesettings.json, support revision-guarded instance updates, and roll back secret writes on failure. Projections gainticketTitlePolicy,ticketProviderBindings, and threadtitleRevision(migrations 44–45).Mobile gets a Ticket Providers settings route and a large configuration screen (policies, accounts, add/probe/default/disable, per-project overrides) aligned with existing web/desktop controls; main settings adds navigation rows and sheet targets.
Reviewed by Cursor Bugbot for commit 1ea3f7a. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Name new threads from linked tickets via provider registry and title policy
TicketProviderRegistryservice that resolves ticket metadata from URLs using VCS process and HTTP clients, with structured errors for no-instance, ambiguous-instance, unsupported-driver, etc.ProviderCommandReactormay asynchronously replace the generated thread title with a ticket-derived title, gated by optimistic concurrency (expectedTitle,expectedTitleRevision) to avoid clobbering manual renames.ticketTitlePolicy,ticketProviderInstances(with secrets kept outsidesettings.json), and aticketProviderInstancesRevisionfor compare-and-set updates;applyServerSettingsPatchincrements the revision on whole-map replacement.ticket_title_policy_jsonandticket_provider_bindings_jsontoprojection_projects, andtitle_revisiontoprojection_threads; projector and snapshot query layers read/write these fields.TicketProviderSettings,ProjectSettingsPanel) and mobile (SettingsTicketProvidersRouteScreen) UI lets users configure ticket title policy and per-provider account bindings; aserver.probeTicketProviderRPC checks instance availability.thread.meta.updatenow omits thetitlefield whenexpectedTitlemismatches the current title orexpectedTitleRevisionis stale;titleRegenerationis cleared only when a new non-equal title is provided and a regeneration is in progress. Projects and threads in the read model now include the new ticket fields, which may require out-of-tree consumers to update their schemas.Macroscope summarized 1ea3f7a.