Skip to content

Own Companion services in an application instance - #34

Merged
Pelotrio merged 7 commits into
codex/companion-ui-dependenciesfrom
codex/companion-application
Sep 11, 2026
Merged

Own Companion services in an application instance#34
Pelotrio merged 7 commits into
codex/companion-ui-dependenciesfrom
codex/companion-application

Conversation

@Pelotrio

@Pelotrio Pelotrio commented Sep 11, 2026

Copy link
Copy Markdown
Member

Companion services now belong to a CompanionApplication instance. CompanionApp retains the process entrypoint, launch lock, logging and look-and-feel setup. MainWindow is constructed explicitly and communicates with application lifecycle through CompanionUi; the singleton window and production configureWithoutSession test path are removed.

MCP and session callbacks use the application instance. Window publication replays current project and service state, deferred navigation stays with its project, and queued UI notifications validate their captured window. Obsolete service-locator getters were deleted. JDT initialization receives an explicit metadata path; its process globals remain deliberate, with one test cache per JVM. Parser prewarming uses the existing project worker.

Lifecycle, runtime-installation and script-panel disposal tests now run in-process without reflecting on application globals. Actual JDWP debuggee forks remain. The UI harness constructs and closes a real application.

Validation: full :check :localBundle --warning-mode fail with offline local Maven dependencies passed; UI harness rendering inspected. Added deferred-frame navigation and late runtime refresh coverage. Lifecycle tests await lookup entry and socket teardown callbacks explicitly. Independent spec/standards findings are addressed.

Stacked on #33. Editor-owned ASTCache and EDT helper cleanup continue in #35.

Window initialization and queued-navigation capture complete before UI publication under the lifecycle lock, without a synchronous Swing hop or future join under that lock. Window disposal unregisters status-bar and evaluation-dialog theme listeners. Regressions cover repeated application lifecycles, rejected window creation and request rejection during replacement restoration. Pure Swing startup remains in CompanionApp.

CompanionApplication remains above the plan's roughly 500-line revisit threshold. A future split is deferred; this PR introduces no additional service layers.

Review notes: CompanionApplication is about 760 lines, above the plan's ~500-line threshold for revisiting a layered split. Roughly 120 of those lines are service-status literals and MCP start/stop wiring; the split stays future work and is not part of this stack.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-11T18:12:41.066074Z be80e56 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Pelotrio
Pelotrio added this pull request to stack #30 September 11, 2026 15:43
@Pelotrio
Pelotrio force-pushed the codex/companion-application branch from 0402a6a to 1916b54 Compare September 11, 2026 16:23
@Pelotrio
Pelotrio force-pushed the codex/companion-application branch from 1916b54 to 8bd3474 Compare September 11, 2026 16:24
@Pelotrio
Pelotrio force-pushed the codex/companion-application branch from 8bd3474 to 790edef Compare September 11, 2026 16:33

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

Copy link
Copy Markdown

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: 790edefe01

ℹ️ 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".

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

Copy link
Copy Markdown

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: df30a1b9ad

ℹ️ 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".

@Pelotrio
Pelotrio force-pushed the codex/companion-application branch 2 times, most recently from c791ad1 to 6971f28 Compare September 11, 2026 17:27
@Pelotrio
Pelotrio force-pushed the codex/companion-application branch from 6971f28 to 14a655b Compare September 11, 2026 17:46
@Pelotrio
Pelotrio force-pushed the codex/companion-application branch from 14a655b to be80e56 Compare September 11, 2026 18:06
@Pelotrio
Pelotrio merged commit ce111d4 into 1.21.1 Sep 11, 2026
3 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