Skip to content

fix: resolve executor compile regressions#265

Closed
KooshaPari wants to merge 421 commits intorouter-for-me:mainfrom
KooshaPari:ci-compile-fix-clean-single2
Closed

fix: resolve executor compile regressions#265
KooshaPari wants to merge 421 commits intorouter-for-me:mainfrom
KooshaPari:ci-compile-fix-clean-single2

Conversation

@KooshaPari
Copy link
Copy Markdown

Fix compile regression fallout with minimal scope: Kiro model mapping brace fix; remove duplicate GitHub Copilot CloseExecutionSession; Codex websocket logger variable usage; Claude token assignment; Kiro OIDC region regex symbol fix.

KooshaPari and others added 30 commits February 22, 2026 16:36
# Conflicts:
#	docs/planning/reports/issue-wave-gh-next21-lane-6.md
#	pkg/llmproxy/api/modules/amp/routes_test.go
These fields are not supported by Codex Responses API and cause upstream errors.

Fixes: router-for-me#1667
- Replace manual prefix/suffix checks with strings.TrimPrefix/TrimSuffix
- Remove unused functions and variables in kiro_executor.go and request_logger.go
- Move default case to the end of switch statement in kiro_executor.go
- Fix function signatures and call sites in kiro_executor.go where arguments were immediately overwritten

Co-authored-by: Cursor <cursoragent@cursor.com>
- Added unit tests for internal/auth packages (codex, copilot, gemini, kiro).
- Added unit tests for internal/runtime/executor, specifically for Kiro executor.
- Added unit tests for various internal translators.
- Improved internal/api and sdk test coverage.
- Fixed a race condition in Kiro social authentication callback server.
- Updated .gitignore to exclude build artifacts and coverage files.
- Cleaned up go.mod and go.sum with go mod tidy.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…rs and fix kiro_websearch functions

This commit:
- Updates cmd/codegen/main.go to support multiple templates and directories.
- Embeds GeneratedConfig in internal/config/Config.
- Restores SSE and message ID functions in internal/translator/kiro/claude/kiro_websearch.go.
- Adds pkg/llmproxy/ directory structure for shared components.
- Fixes missing strings import in generated config files.

Co-authored-by: Cursor <cursoragent@cursor.com>
Renamed references to CLIProxyAPIPlus to cliproxyapi++ (display) and cliproxyapi-plusplus (technical). Updated GitHub remote and internal URLs.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
KooshaPari and others added 24 commits February 22, 2026 21:47
…260223-v2

docs: replace marketing language with concise technical wording
…-20260223

merge: absorb heliosharness parity branch functional delta
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @KooshaPari, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on stabilizing the executor by resolving several compile regressions that impacted various LLM provider integrations. Beyond critical bug fixes, it significantly enhances the project's development and operational experience through new CI/CD pipelines, comprehensive documentation, and improved Docker deployment. The changes aim to provide a more robust, maintainable, and user-friendly platform for managing LLM proxies.

Highlights

  • Compile Regression Fixes: Addressed and resolved several compile regressions across various executor components, including specific fixes for Kiro model mapping, GitHub Copilot session handling, Codex websocket logging, Claude token assignment, and Kiro OIDC region regex.
  • Enhanced CI/CD and Quality Gates: Introduced new GitHub Actions scripts for enforcing approved external endpoints, validating distributed critical paths, checking documentation for secret samples, ensuring fragmented open-item parity, and verifying workflow token permissions. A new golangci-lint configuration and Taskfile.yml were added to standardize quality checks and task automation.
  • Comprehensive Documentation Overhaul: Significantly expanded and restructured the project documentation, including detailed guides for architecture, authentication, operations, and providers. New API reference documents, audience-specific docsets, and planning boards were added to improve clarity and usability for various stakeholders.
  • Docker and Release Process Improvements: Updated the Dockerfile for a more hardened deployment, incorporating environment variable overrides and a new docker-init.sh entrypoint. The goreleaser configuration was refactored for consistent naming, and new Go tools (boardsync, codegen, releasebatch) were introduced to automate project management, code generation, and release tagging.
  • Expanded CLI Login and Setup Options: Added new command-line interface flags for logging into various LLM providers (e.g., Roo, MiniMax, DeepSeek, Groq, Mistral, SiliconFlow, OpenRouter, Together, Fireworks, Novita) and introduced a guided setup wizard to streamline initial configuration.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • .env.example
    • Added Docker runtime configuration variables to the example environment file.
  • .github/ISSUE_TEMPLATE/bug_report.md
    • Updated the bug report template to be more specific to cliproxyapi++.
  • .github/policies/approved-external-endpoints.txt
    • Added a new policy file for approved external endpoint hosts.
  • .github/release-required-checks.txt
    • Added a new file defining required checks for releases.
  • .github/required-checks.txt
    • Added a new file defining general required checks for pull requests.
  • .github/scripts/check-approved-external-endpoints.sh
    • Added a new script to enforce approved external endpoint policies.
  • .github/scripts/check-distributed-critical-paths.sh
    • Added a new script to validate distributed critical paths.
  • .github/scripts/check-docs-secret-samples.sh
    • Added a new script to check documentation for secret samples.
  • .github/scripts/check-open-items-fragmented-parity.sh
    • Added a new script to validate the status parity of fragmented open items.
  • .github/scripts/check-workflow-token-permissions.sh
    • Added a new script to check GitHub Actions workflow token permissions.
  • .github/scripts/release-lint.sh
    • Added a new script for release linting and markdown snippet parsing.
  • .github/scripts/tests/check-open-items-fragmented-parity-test.sh
    • Added a new test script for open items fragmented parity check.
  • .github/scripts/tests/fixtures/open-items-parity/fail-missing-status.md
    • Added a test fixture for open items parity.
  • .github/scripts/tests/fixtures/open-items-parity/fail-status-partial.md
    • Added a test fixture for open items parity.
  • .github/scripts/tests/fixtures/open-items-parity/pass-hash-status-done.md
    • Added a test fixture for open items parity.
  • .github/scripts/tests/fixtures/open-items-parity/pass-status-implemented.md
    • Added a test fixture for open items parity.
  • .gitignore
    • Updated ignored files to include new build artifacts and documentation outputs.
  • .golangci.yml
    • Added golangci-lint configuration for code quality enforcement.
  • .goreleaser.yml
    • Updated goreleaser configuration to use the new cliproxyapi++ naming.
  • .pre-commit-config.yaml
    • Added pre-commit hooks for quality checks.
  • CHANGELOG.md
    • Added a new CHANGELOG.md file.
  • CONTRIBUTING.md
    • Added a new CONTRIBUTING.md file with contribution guidelines.
  • Dockerfile
    • Updated Dockerfile for hardened deployment, new binary name, and environment variable overrides.
  • LICENSE
    • Updated LICENSE to include a new copyright holder.
  • README.md
    • Updated README.md with detailed project overview, feature comparisons, and technical differences for cliproxyapi++.
  • README_CN.md
    • Updated Chinese README_CN.md with detailed project overview, feature comparisons, and technical differences for cliproxyapi++.
  • README_FA.md
    • Added a new README_FA.md file.
  • SECURITY.md
    • Added a new SECURITY.md file detailing the security policy and hardening measures.
  • Taskfile.yml
    • Added a new Taskfile.yml for unified task management.
  • cmd/boardsync/main.go
    • Added a new Go tool (boardsync) for synchronizing GitHub project boards.
  • cmd/codegen/main.go
    • Added a new Go tool (codegen) for generating provider-related Go code.
  • cmd/releasebatch/main.go
    • Added a new Go tool (releasebatch) for automating release tagging and notes generation.
  • cmd/releasebatch/main_test.go
    • Added unit tests for the releasebatch tool.
  • cmd/server/config_path.go
    • Added logic for resolving default configuration file paths.
  • cmd/server/config_path_test.go
    • Added unit tests for configuration path resolution.
  • cmd/server/config_validate.go
    • Added strict validation for configuration files.
  • cmd/server/config_validate_test.go
    • Added unit tests for strict configuration validation.
  • cmd/server/main.go
    • Refactored imports to pkg/llmproxy, added new CLI login flags for various providers, and introduced a setup wizard.
  • cmd/server/main_kiro_flags_test.go
    • Added unit tests for Kiro incognito mode flags.
  • config.example.yaml
    • Updated string values in config.example.yaml for consistency and removed deprecated sections.
  • docker-compose.yml
    • Updated Docker image name and added environment variable overrides for runtime configuration.
  • docker-init.sh
    • Added a new Docker entrypoint script for initialization and environment variable application.
  • docs/.vitepress/config.ts
    • Added VitePress configuration for documentation.
  • docs/.vitepress/plugins/content-tabs.ts
    • Added a Markdown-it plugin for content tabs in documentation.
  • docs/.vitepress/theme/index.ts
    • Extended VitePress theme to include content tabs script.
  • docs/FEATURE_CHANGES_PLUSPLUS.md
    • Added a new document detailing cliproxyapi++ feature changes.
  • docs/README.md
    • Added a new documentation map.
  • docs/api/index.md
    • Added an API index document.
  • docs/api/management.md
    • Added documentation for the Management API.
  • docs/api/openai-compatible.md
    • Added documentation for the OpenAI-compatible API.
  • docs/api/operations.md
    • Added documentation for the Operations API.
  • docs/docsets/agent/index.md
    • Added documentation for Agent Operators.
  • docs/docsets/agent/operating-model.md
    • Added documentation for the Agent Operating Model.
  • docs/docsets/developer/external/index.md
    • Added documentation for External Developers.
  • docs/docsets/developer/external/integration-quickstart.md
    • Added an integration quickstart for external services.
  • docs/docsets/developer/internal/architecture.md
    • Added documentation for internal architecture.
  • docs/docsets/developer/internal/index.md
    • Added documentation for Internal Developers.
  • docs/docsets/index.md
    • Added an index for audience-specific docsets.
  • docs/docsets/user/index.md
    • Added documentation for Technical Users.
  • docs/docsets/user/quickstart.md
    • Added a quickstart for technical users.
  • docs/features/architecture/DEV.md
    • Added a developer guide for extending the library-first architecture.
  • docs/features/architecture/SPEC.md
    • Added a technical specification for the library-first architecture.
  • docs/features/architecture/USER.md
    • Added a user guide for the library-first architecture.
  • docs/features/architecture/fragemented/.fragmented-candidates.txt
    • Added a list of fragmented candidates for architecture documentation.
  • docs/features/architecture/fragemented/.migration.log
    • Added a migration log for fragmented architecture documentation.
  • docs/features/architecture/fragemented/DEV.md
    • Added a fragmented developer guide for extending the library-first architecture.
  • docs/features/architecture/fragemented/README.md
    • Added a README for fragmented architecture documentation backups.
  • docs/features/architecture/fragemented/SPEC.md
    • Added a fragmented technical specification for the library-first architecture.
  • docs/features/architecture/fragemented/USER.md
    • Added a fragmented user guide for the library-first architecture.
  • docs/features/architecture/fragemented/explanation.md
    • Added an explanation for fragmented architecture documentation.
  • docs/features/architecture/fragemented/index.md
    • Added an index for fragmented architecture documentation.
  • docs/features/architecture/fragemented/merged.md
    • Added a merged document of fragmented architecture documentation.
  • docs/features/auth/DEV.md
    • Added a developer guide for authentication.
  • docs/features/auth/SPEC.md
    • Added a technical specification for authentication and lifecycle.
  • docs/features/auth/USER.md
    • Added a user guide for authentication.
  • docs/features/auth/index.md
    • Added an index for authentication feature documentation.
  • docs/features/index.md
    • Added an index for feature guides.
  • docs/features/operations/SPEC.md
    • Added a technical specification for operations.
  • docs/features/operations/USER.md
    • Added a user guide for high-scale operations.
  • docs/features/operations/index.md
    • Added an index for operations feature documentation.
  • docs/features/providers/SPEC.md
    • Added a technical specification for the provider registry and support.
  • docs/features/providers/USER.md
    • Added a user guide for providers.
  • docs/features/providers/fragemented/.fragmented-candidates.txt
    • Added a list of fragmented candidates for provider documentation.
  • docs/features/providers/fragemented/.migration.log
    • Added a migration log for fragmented provider documentation.
  • docs/features/providers/fragemented/README.md
    • Added a README for fragmented provider documentation backups.
  • docs/features/providers/fragemented/SPEC.md
    • Added a fragmented technical specification for the provider registry and support.
  • docs/features/providers/fragemented/USER.md
    • Added a fragmented user guide for providers.
  • docs/features/providers/fragemented/explanation.md
    • Added an explanation for fragmented provider documentation.
  • docs/features/providers/fragemented/index.md
    • Added an index for fragmented provider documentation.
  • docs/features/providers/fragemented/merged.md
    • Added a merged document of fragmented provider documentation.
  • docs/features/security/SPEC.md
    • Added a technical specification for security hardening.
  • docs/features/security/USER.md
    • Added a user guide for security hardening.
  • docs/features/security/index.md
    • Added an index for security feature documentation.
  • docs/getting-started.md
    • Added a new getting started guide.
  • docs/guides/CHANGELOG_ENTRY_TEMPLATE.md
    • Added a changelog entry template.
  • docs/guides/CHANGELOG_PROCESS.md
    • Added a changelog process guide.
  • docs/guides/PROJECT_SETUP_STYLE.md
    • Added a project setup style guide.
  • docs/guides/release-batching.md
    • Added a release batching guide.
  • docs/index.md
    • Added the main documentation index.
  • docs/install.md
    • Added installation instructions.
  • docs/operations/auth-refresh-failure-symptom-fix.md
    • Added a symptom/fix table for authentication refresh failures.
  • docs/operations/checks-owner-responder-map.md
    • Added a checks-to-owner responder map.
  • docs/operations/critical-endpoints-curl-pack.md
    • Added a curl pack for critical endpoints.
  • docs/operations/distributed-fs-compute-status.md
    • Added a document detailing distributed file system and compute status.
  • docs/operations/index.md
    • Added an operations response kit index.
  • docs/operations/provider-outage-triage-quick-guide.md
    • Added a quick guide for provider outage triage.
  • docs/operations/release-governance.md
    • Added release governance and checklist documentation.
Ignored Files
  • Ignored by pattern: .github/workflows/** (8)
    • .github/workflows/ci-rerun-flaky.yml
    • .github/workflows/codeql.yml
    • .github/workflows/pr-path-guard.yml
    • .github/workflows/pr-test-build.yml
    • .github/workflows/release-batch.yaml
    • .github/workflows/release.yaml
    • .github/workflows/required-check-names-guard.yml
    • .github/workflows/vitepress-pages.yml
Activity
  • No human activity has been recorded on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@KooshaPari

This comment was marked as spam.

@KooshaPari KooshaPari closed this Feb 23, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

The pull request introduces a significant refactoring to move core logic into a reusable pkg/llmproxy library, along with new automation tools for project management and releases. While the architectural direction is positive, there are several technical issues in the new scripts and tools. Specifically, the Docker initialization script uses fragile sed commands that can fail or lead to configuration corruption if environment variables contain special characters. The boardsync tool contains an unsafe string slicing function that is not UTF-8 aware, and several documentation files contain hardcoded absolute paths from a local development environment. Additionally, there are consistent typos in directory names and hardcoded dates in filenames that should be made dynamic for better maintainability.

Comment on lines +64 to +65
sed -i "s/^host:.*/host: \"${CLIPROXY_HOST}\"/" "${CONFIG_FILE}" 2>/dev/null || \
sed -i '' "s/^host:.*/host: \"${CLIPROXY_HOST}\"/" "${CONFIG_FILE}" 2>/dev/null || true
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

security-high high

Using sed with a fixed delimiter (in this case /) to inject environment variables into a configuration file is fragile. If the environment variable (e.g., CLIPROXY_HOST or CLIPROXY_SECRET_KEY) contains the delimiter character, the sed command will fail. Furthermore, using double quotes around the variable in the sed command can lead to shell injection or command failure if the variable contains double quotes. Since this is a Go project, a more robust approach would be to handle these overrides directly within the application's configuration loader or use a dedicated YAML manipulation tool.

Comment on lines +672 to +677
func shrink(s string, max int) string {
if len(s) <= max {
return s
}
return s[:max]
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The shrink function performs a byte-level slice on a string. In Go, strings are UTF-8 encoded, and slicing at an arbitrary byte index can break multi-byte characters, leading to invalid UTF-8 strings or even a panic if the slice index is out of bounds. It is safer to convert the string to a rune slice before slicing or use the utf8 package to find a valid character boundary.

Suggested change
func shrink(s string, max int) string {
if len(s) <= max {
return s
}
return s[:max]
}
func shrink(s string, max int) string {
runes := []rune(s)
if len(runes) <= max {
return s
}
return string(runes[:max])
}


This folder is a deterministic backup of 2026-updated Markdown fragments for consolidation and merge safety.

- Source docs: `/Users/kooshapari/temp-PRODVERCEL/485/kush/cliproxyapi-plusplus/docs/features/architecture`
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The documentation contains a hardcoded absolute path from a local development environment. This should be replaced with a relative path to ensure the documentation remains valid and professional across different environments and for other contributors.

Suggested change
- Source docs: `/Users/kooshapari/temp-PRODVERCEL/485/kush/cliproxyapi-plusplus/docs/features/architecture`
- Source docs: `./docs/features/architecture`

Items: board,
}

const base = "CLIPROXYAPI_2000_ITEM_EXECUTION_BOARD_2026-02-22"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The filename base contains a hardcoded date. For a synchronization tool, it is generally better to generate the date dynamically using time.Now() to ensure that generated artifacts are correctly timestamped based on when the tool is actually run. Note that this also applies to other hardcoded date strings in this file (e.g., line 116).

Suggested change
const base = "CLIPROXYAPI_2000_ITEM_EXECUTION_BOARD_2026-02-22"
base := fmt.Sprintf("CLIPROXYAPI_2000_ITEM_EXECUTION_BOARD_%s", time.Now().Format("2006-01-02"))

#!/usr/bin/env bash
set -euo pipefail

report="${REPORT_PATH:-docs/reports/fragemented/OPEN_ITEMS_VALIDATION_2026-02-22.md}"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

There is a consistent typo in the path name: fragemented should be fragmented. This typo appears in multiple directory names and script references throughout the PR. Correcting this will improve maintainability and prevent confusion.

Suggested change
report="${REPORT_PATH:-docs/reports/fragemented/OPEN_ITEMS_VALIDATION_2026-02-22.md}"
report="${REPORT_PATH:-docs/reports/fragmented/OPEN_ITEMS_VALIDATION_2026-02-22.md}"


This folder is a deterministic backup of 2026-updated Markdown fragments for consolidation and merge safety.

- Source docs: `/Users/kooshapari/temp-PRODVERCEL/485/kush/cliproxyapi-plusplus/docs/features/providers`
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The documentation contains a hardcoded absolute path from a local development environment. This should be replaced with a relative path.

Suggested change
- Source docs: `/Users/kooshapari/temp-PRODVERCEL/485/kush/cliproxyapi-plusplus/docs/features/providers`
- Source docs: `./docs/features/providers`

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.

2 participants