Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion cmd/wsh/cmd/wshcmd-editconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import (
"github.com/wavetermdev/waveterm/pkg/wshrpc/wshclient"
)

var editConfigMagnified bool

var editConfigCmd = &cobra.Command{
Use: "editconfig [configfile]",
Short: "edit Wave configuration files",
Expand All @@ -23,6 +25,7 @@ var editConfigCmd = &cobra.Command{
}

func init() {
editConfigCmd.Flags().BoolVarP(&editConfigMagnified, "magnified", "m", false, "open config in magnified mode")
rootCmd.AddCommand(editConfigCmd)
}

Expand Down Expand Up @@ -52,7 +55,8 @@ func editConfigRun(cmd *cobra.Command, args []string) (rtnErr error) {
waveobj.MetaKey_Edit: true,
},
},
Focused: true,
Magnified: editConfigMagnified,
Focused: true,
}

_, err = RpcClient.SendRpcRequest(wshrpc.Command_CreateBlock, wshCmd, &wshrpc.RpcOpts{Timeout: 2000})
Expand Down
4 changes: 2 additions & 2 deletions emain/emain-window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export type WindowOpts = {
unamePlatform: string;
};

const MIN_WINDOW_WIDTH = 600;
const MIN_WINDOW_HEIGHT = 350;
const MIN_WINDOW_WIDTH = 800;
const MIN_WINDOW_HEIGHT = 500;

export const waveWindowMap = new Map<string, WaveBrowserWindow>(); // waveWindowId -> WaveBrowserWindow

Expand Down
277 changes: 215 additions & 62 deletions frontend/app/aipanel/aipanel.tsx

Large diffs are not rendered by default.

26 changes: 1 addition & 25 deletions frontend/app/aipanel/aipanelheader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0

import { ContextMenuModel } from "@/app/store/contextmenu";
import { useAtom, useAtomValue } from "jotai";
import { useAtomValue } from "jotai";
import { memo } from "react";
import { WaveAIModel } from "./waveai-model";

Expand All @@ -14,18 +14,6 @@ interface AIPanelHeaderProps {

export const AIPanelHeader = memo(({ onClose, model, onClearChat }: AIPanelHeaderProps) => {
const widgetAccess = useAtomValue(model.widgetAccessAtom);
const currentModel = useAtomValue(model.modelAtom);

const modelOptions = [
{ value: "gpt-5", label: "GPT-5" },
{ value: "gpt-5-mini", label: "GPT-5 Mini" },
{ value: "claude-sonnet-4-5", label: "Claude Sonnet 4.5" },
];

const getModelLabel = (modelValue: string): string => {
const option = modelOptions.find((opt) => opt.value === modelValue);
return option?.label ?? modelValue;
};

const handleKebabClick = (e: React.MouseEvent) => {
const menu: ContextMenuItem[] = [
Expand All @@ -36,18 +24,6 @@ export const AIPanelHeader = memo(({ onClose, model, onClearChat }: AIPanelHeade
},
},
{ type: "separator" },
{
label: `Model (${getModelLabel(currentModel)})`,
submenu: modelOptions.map((option) => ({
label: option.label,
type: currentModel === option.value ? "checkbox" : undefined,
checked: currentModel === option.value,
click: () => {
model.setModel(option.value);
},
})),
},
{ type: "separator" },
{
label: "Hide Wave AI",
click: () => {
Expand Down
Loading
Loading