Skip to content

Give Companion UI explicit project and execution dependencies - #33

Merged
Pelotrio merged 9 commits into
codex/companion-project-scopefrom
codex/companion-ui-dependencies
Sep 11, 2026
Merged

Give Companion UI explicit project and execution dependencies#33
Pelotrio merged 9 commits into
codex/companion-project-scopefrom
codex/companion-ui-dependencies

Conversation

@Pelotrio

@Pelotrio Pelotrio commented Sep 11, 2026

Copy link
Copy Markdown
Member

Companion editors and project windows now receive the project, state, runtime, navigation and debugger collaborators they use. Models capture project paths when created, and Search Everywhere queries its injected runtime rather than the process-wide JDT hook.

Java editors share a small EditorContext. ScriptExecutionService centralizes authenticated execution and boolean admission rejection for UI and MCP. Result subscriptions go through CompanionSession and are removed by their owners. MainWindow pairs debugger/theme/AWT listeners with disposal and shares project-window cleanup between switching and shutdown. Queued debugger work validates project/status before opening windows.

Validation: full :check :localBundle --warning-mode fail passed with local Maven dependencies and offline mode; the UI harness rendered the source editor, runtime tree and resource tabs successfully. Added authenticated-session/gate-race coverage and updated UI/disposal fixtures. Independent spec/standards review findings are addressed.

Stacked on #32. This wires C2/C3 dependencies before C1. The temporary CompanionApp createMainWindow/scriptExecutions/session entry points are removed by #34; #35 owns the AST cache. Save as script now navigates to the saved file, recording it in navigation history.

Script execution and UI availability share the application connection predicate, including switching and shutdown. Redundant file-tree branches and the post-dereference null check are removed.

Review notes: CompanionApp.createMainWindow(), scriptExecutions() and session() are transitional statics that feed MainWindow.INSTANCE until #34 removes the singleton and the statics together. Saving an evaluator expression as a script now opens it through navigation, so it records a history entry like any other open. Search Everywhere reads the project scope once when supplying its runtime.

@Pelotrio
Pelotrio added this pull request to stack #30 September 11, 2026 15:14
@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:15:16.838794Z 9068e65 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.

@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: 87088bcbcc

ℹ️ 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: b13a3bf6ba

ℹ️ 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-ui-dependencies branch 5 times, most recently from 4dd6b16 to f6ea2e5 Compare September 11, 2026 17:46

@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: f6ea2e52cd

ℹ️ 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-ui-dependencies branch from f6ea2e5 to 9068e65 Compare September 11, 2026 18:06

@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: 9068e658cf

ℹ️ 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 merged commit 41476d1 into 1.21.1 Sep 11, 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