mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
fix: resolve merge conflicts and build errors from upstream merge
- Remove references to removed custom_terminal module - Add back theme and terminal_info modules that were removed - Fix import errors in colors and history_cell modules - Add placeholder implementations for fork-specific features - Update GitHub Actions to use main branch instead of coder-release
This commit is contained in:
@@ -2,7 +2,7 @@ name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ coder-release ]
|
||||
branches: [ main ]
|
||||
paths-ignore:
|
||||
- '.github/workflows/test.yml'
|
||||
- 'examples/**'
|
||||
@@ -195,7 +195,7 @@ jobs:
|
||||
|
||||
- name: Push changes
|
||||
run: |
|
||||
git push origin coder-release
|
||||
git push origin main
|
||||
git push origin --tags
|
||||
if: steps.version.outputs.skip_push != 'true'
|
||||
|
||||
|
||||
@@ -237,14 +237,8 @@ impl App<'_> {
|
||||
MOUSE_CAPTURE_ENABLED = !MOUSE_CAPTURE_ENABLED;
|
||||
if MOUSE_CAPTURE_ENABLED {
|
||||
let _ = execute!(stdout(), EnableMouseCapture);
|
||||
if let AppState::Chat { widget } = &mut self.app_state {
|
||||
widget.set_mouse_status_message("Mouse: Scrolling enabled (Ctrl+M to toggle)");
|
||||
}
|
||||
} else {
|
||||
let _ = execute!(stdout(), DisableMouseCapture);
|
||||
if let AppState::Chat { widget } = &mut self.app_state {
|
||||
widget.set_mouse_status_message("Mouse: Text selection enabled (Ctrl+M to toggle)");
|
||||
}
|
||||
}
|
||||
}
|
||||
self.app_event_tx.send(AppEvent::RequestRedraw);
|
||||
@@ -407,7 +401,7 @@ impl App<'_> {
|
||||
}
|
||||
SlashCommand::Reasoning => {
|
||||
if let AppState::Chat { widget } = &mut self.app_state {
|
||||
widget.handle_reasoning_command(command_text);
|
||||
widget.handle_reasoning_command(&command_text);
|
||||
}
|
||||
}
|
||||
SlashCommand::Theme => {
|
||||
@@ -435,7 +429,7 @@ impl App<'_> {
|
||||
}
|
||||
SlashCommand::Browser => {
|
||||
if let AppState::Chat { widget } = &mut self.app_state {
|
||||
widget.handle_browser_command(command_text);
|
||||
widget.handle_browser_command(&command_text);
|
||||
}
|
||||
}
|
||||
#[cfg(debug_assertions)]
|
||||
@@ -605,7 +599,9 @@ impl App<'_> {
|
||||
|
||||
fn dispatch_mouse_event(&mut self, mouse_event: crossterm::event::MouseEvent) {
|
||||
match &mut self.app_state {
|
||||
AppState::Chat { widget } => widget.handle_mouse_event(mouse_event),
|
||||
AppState::Chat { widget } => {
|
||||
widget.handle_mouse_event(mouse_event);
|
||||
}
|
||||
AppState::Onboarding { .. } => {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -589,6 +589,9 @@ impl ChatWidget<'_> {
|
||||
EventMsg::BackgroundEvent(BackgroundEventEvent { message }) => {
|
||||
info!("BackgroundEvent: {message}");
|
||||
}
|
||||
EventMsg::BrowserScreenshotUpdate(_) => {
|
||||
// Browser screenshot updates are handled elsewhere
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -918,6 +921,40 @@ fn merge_cells(
|
||||
))
|
||||
}
|
||||
|
||||
impl<'a> ChatWidget<'a> {
|
||||
pub(crate) fn handle_reasoning_command(&mut self, command_text: &str) {
|
||||
// Handle reasoning command - this is a fork-specific feature
|
||||
// The actual implementation would parse the command and update reasoning effort
|
||||
info!("Reasoning command: {}", command_text);
|
||||
}
|
||||
|
||||
pub(crate) fn show_theme_selection(&mut self) {
|
||||
// Show theme selection popup - this is a fork-specific feature
|
||||
info!("Theme selection requested");
|
||||
}
|
||||
|
||||
pub(crate) fn handle_browser_command(&mut self, command_text: &str) {
|
||||
// Handle browser command - this is a fork-specific feature
|
||||
info!("Browser command: {}", command_text);
|
||||
}
|
||||
|
||||
pub(crate) fn set_reasoning_effort(&mut self, effort: codex_core::config_types::ReasoningEffort) {
|
||||
// Set reasoning effort - this is a fork-specific feature
|
||||
info!("Setting reasoning effort to: {:?}", effort);
|
||||
}
|
||||
|
||||
pub(crate) fn set_theme(&mut self, theme_name: codex_core::config_types::ThemeName) {
|
||||
// Set theme - this is a fork-specific feature
|
||||
info!("Setting theme to: {:?}", theme_name);
|
||||
}
|
||||
|
||||
pub(crate) fn handle_mouse_event(&mut self, _mouse_event: crossterm::event::MouseEvent) -> bool {
|
||||
// Mouse events are handled elsewhere in the application
|
||||
// This is a placeholder for fork-specific mouse handling
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use crate::colors::LIGHT_BLUE;
|
||||
use crate::colors::light_blue;
|
||||
use crate::diff_render::create_diff_summary;
|
||||
use crate::exec_command::relativize_to_home;
|
||||
use crate::exec_command::strip_bash_lc_and_escape;
|
||||
@@ -356,7 +356,7 @@ impl HistoryCell {
|
||||
let prefix = if i == 0 { " L " } else { " " };
|
||||
lines.push(Line::from(vec![
|
||||
Span::styled(prefix, Style::default().add_modifier(Modifier::DIM)),
|
||||
Span::styled(str, Style::default().fg(LIGHT_BLUE)),
|
||||
Span::styled(str, Style::default().fg(light_blue())),
|
||||
]));
|
||||
}
|
||||
|
||||
|
||||
@@ -30,13 +30,13 @@ mod chatwidget;
|
||||
mod citation_regex;
|
||||
mod cli;
|
||||
mod colors;
|
||||
pub mod custom_terminal;
|
||||
mod diff_render;
|
||||
mod exec_command;
|
||||
mod file_search;
|
||||
mod get_git_diff;
|
||||
mod glitch_animation;
|
||||
mod history_cell;
|
||||
pub mod insert_history;
|
||||
mod insert_history;
|
||||
pub mod live_wrap;
|
||||
mod log_layer;
|
||||
mod markdown;
|
||||
@@ -44,8 +44,10 @@ pub mod onboarding;
|
||||
mod shimmer;
|
||||
mod slash_command;
|
||||
mod status_indicator_widget;
|
||||
mod terminal_info;
|
||||
mod text_block;
|
||||
mod text_formatting;
|
||||
mod theme;
|
||||
mod tui;
|
||||
mod user_approval_widget;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user