Skip to content

OpenAI baseUrl support#13

Open
wubin1989 wants to merge 16 commits intomainfrom
upstream-open-pr-216
Open

OpenAI baseUrl support#13
wubin1989 wants to merge 16 commits intomainfrom
upstream-open-pr-216

Conversation

@wubin1989
Copy link
Copy Markdown
Owner

Migrated open PR from upstream for local review.

Upstream: opencode-ai#216
Upstream head: molander:openai-baseurl-support @ 26986d7

monotykamary and others added 16 commits June 5, 2025 22:20
🤖 Generated with opencode
Co-Authored-By: opencode <noreply@opencode.ai>
🤖 Generated with opencode
Co-Authored-By: opencode <noreply@opencode.ai>
Introduces a new global configuration option `alwaysAllowPermissions`
and a corresponding CLI flag `--always-allow-permissions` (shorthand `-A`).

When this setting is enabled, all permission prompts during a session
are bypassed, and operations are automatically allowed. This provides
a more streamlined experience for users who trust all operations
performed by the tool.

The configuration is persisted across sessions.

🤖 Generated with opencode
Co-Authored-By: opencode <noreply@opencode.ai>
The --always-allow-permissions flag no longer automatically updates the user's configuration file. This change ensures that the setting is manually configured by the user, and only affects the current session unless explicitly set in the config.
This commit introduces the ability for users to hide and show the sidebar
by pressing `ctrl+b`. This feature provides more screen real estate for
the main chat view, which is especially useful on smaller screens.

The implementation involves:

- Adding a `hidden` state to the `sidebarCmp` component.
- Creating a `ToggleSidebarMsg` to toggle the sidebar's visibility.
- Adding a keybinding (`ctrl+b`) to the chat page to dispatch the message.
- Modifying the `splitPaneLayout` to forward the message to the sidebar.

🤖 Generated with opencode
Co-Authored-By: opencode <noreply@opencode.ai>
When the sidebar is hidden, the chat view now expands to fill the available space.

This is achieved by updating the layout to recalculate its dimensions when the sidebar's visibility changes.

This also fixes a bug where the status bar would overlap the chat input when the sidebar was hidden.
This commit introduces a confirmation step for canceling an ongoing agent operation. Users must now press the `esc` key twice in quick succession to cancel, preventing accidental cancellations.

The implementation involves:
- Adding a timeout to the `esc` key press in the chat page.
- Passing the `firstEsc` state down to the message list component to update the help message.
- Adding a `Model()` method to the `layout.Container` to allow the chat page to access the message list's model.

🤖 Generated with opencode
Co-Authored-By: opencode <noreply@opencode.ai>
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.

3 participants