Skip to content

Add interactive installer to codexa init#11

Merged
M9nx merged 15 commits intomainfrom
copilot/implement-tui-interactive-installer
Apr 1, 2026
Merged

Add interactive installer to codexa init#11
M9nx merged 15 commits intomainfrom
copilot/implement-tui-interactive-installer

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 1, 2026

  • Add guard for resolve_profile returning None before accessing fields
  • Run targeted CLI tests for init interactive flow
  • Update PR comment with commit hash once addressed

Copilot AI assigned Copilot and M9nx Apr 1, 2026
Copilot AI linked an issue Apr 1, 2026 that may be closed by this pull request
Copilot AI and others added 7 commits April 1, 2026 06:05
Agent-Logs-Url: https://github.com/M9nx/CodexA/sessions/95572185-7ffc-40bd-9def-cb7aa8ab330a

Co-authored-by: M9nx <90654832+M9nx@users.noreply.github.com>
Agent-Logs-Url: https://github.com/M9nx/CodexA/sessions/95572185-7ffc-40bd-9def-cb7aa8ab330a

Co-authored-by: M9nx <90654832+M9nx@users.noreply.github.com>
Agent-Logs-Url: https://github.com/M9nx/CodexA/sessions/95572185-7ffc-40bd-9def-cb7aa8ab330a

Co-authored-by: M9nx <90654832+M9nx@users.noreply.github.com>
Agent-Logs-Url: https://github.com/M9nx/CodexA/sessions/95572185-7ffc-40bd-9def-cb7aa8ab330a

Co-authored-by: M9nx <90654832+M9nx@users.noreply.github.com>
Agent-Logs-Url: https://github.com/M9nx/CodexA/sessions/95572185-7ffc-40bd-9def-cb7aa8ab330a

Co-authored-by: M9nx <90654832+M9nx@users.noreply.github.com>
Agent-Logs-Url: https://github.com/M9nx/CodexA/sessions/95572185-7ffc-40bd-9def-cb7aa8ab330a

Co-authored-by: M9nx <90654832+M9nx@users.noreply.github.com>
Agent-Logs-Url: https://github.com/M9nx/CodexA/sessions/95572185-7ffc-40bd-9def-cb7aa8ab330a

Co-authored-by: M9nx <90654832+M9nx@users.noreply.github.com>
Copilot AI changed the title [WIP] Add TUI for interactive installer with user guidance Add interactive installer to codexa init Apr 1, 2026
Copilot finished work on behalf of M9nx April 1, 2026 06:13
Copilot AI requested a review from M9nx April 1, 2026 06:13
@M9nx M9nx requested a review from Copilot April 1, 2026 06:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an interactive “installer” flow to codexa init so users can choose an embedding profile and batch size via prompts (with resource-based suggestions), and persists those selections into .codexa/config.json.

Changes:

  • Introduces codexa init --interactive/--no-interactive to guide profile + batch size selection and optionally update an existing project’s config.
  • Refactors non-interactive init logic to separate “recommended” vs “applied” settings, preserving prior behavior.
  • Adds a CLI test asserting interactive selections are written to config.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
semantic_code_intelligence/cli/commands/init_cmd.py Adds --interactive flow (Rich panels/table + Click prompts), and supports updating config for already-initialized projects.
semantic_code_intelligence/tests/test_cli.py Adds test coverage for interactive init persisting chosen profile and batch size.

@M9nx
Copy link
Copy Markdown
Owner

M9nx commented Apr 1, 2026

@copilot apply changes based on the comments in this thread

Agent-Logs-Url: https://github.com/M9nx/CodexA/sessions/ff2ec324-5ea7-4843-8109-01925ea66b32

Co-authored-by: M9nx <90654832+M9nx@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 1, 2026

@copilot apply changes based on the comments in this thread

Changes applied in 1408690: interactive init now handles malformed configs with a clear error, profile table/prompt pull choices from registry constants, and added a test covering init followed by init --interactive to verify config updates. Screenshot remains available here: https://github.com/user-attachments/assets/f5982f05-fc8a-4aa7-81d0-3202e6b01c57

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

@M9nx
Copy link
Copy Markdown
Owner

M9nx commented Apr 1, 2026

@copilot apply changes based on the comments in this thread

Copilot AI and others added 3 commits April 1, 2026 06:33
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 1, 2026

@copilot apply changes based on the comments in this thread

Handled in 6fbca28: interactive init now reports permission/read errors consistently and added CLI coverage for malformed and unreadable configs with deterministic mocking.

Copilot finished work on behalf of M9nx April 1, 2026 06:37
Copilot stopped work on behalf of M9nx due to an error April 1, 2026 06:41
Copilot finished work on behalf of M9nx April 1, 2026 06:43
@M9nx M9nx requested a review from Copilot April 1, 2026 06:44
@M9nx M9nx marked this pull request as ready for review April 1, 2026 06:44
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

@M9nx
Copy link
Copy Markdown
Owner

M9nx commented Apr 1, 2026

@copilot apply changes based on the comments in this thread

Copilot AI and others added 3 commits April 1, 2026 06:55
Agent-Logs-Url: https://github.com/M9nx/CodexA/sessions/ff7e804e-c142-4efa-848c-0c92f5534ccb

Co-authored-by: M9nx <90654832+M9nx@users.noreply.github.com>
Agent-Logs-Url: https://github.com/M9nx/CodexA/sessions/ff7e804e-c142-4efa-848c-0c92f5534ccb

Co-authored-by: M9nx <90654832+M9nx@users.noreply.github.com>
Agent-Logs-Url: https://github.com/M9nx/CodexA/sessions/ff7e804e-c142-4efa-848c-0c92f5534ccb

Co-authored-by: M9nx <90654832+M9nx@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 1, 2026

@copilot apply changes based on the comments in this thread

Handled by adding a ClickException guard when resolving the interactive profile choice and surfacing the registry-derived valid profiles list (commit 5cca5d8).

Copy link
Copy Markdown
Owner

@M9nx M9nx left a comment

Choose a reason for hiding this comment

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

Seems good !

@M9nx M9nx merged commit 774692f into main Apr 1, 2026
8 checks passed
@M9nx M9nx added the enhancement New feature or request label Apr 1, 2026
Copilot stopped work on behalf of M9nx due to an error April 1, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement a TUI [interactive installer]

3 participants