feat: add recent paths suggestions and improve UX polish

- Add recent paths hook to persist and suggest working directories
- Update Android icon assets and simplify adaptive icon configuration
- Remove background styling from header icon buttons for cleaner look
- Export expandTilde utility for path normalization in agent creation
- Add horizontal scrollable chips for recent path suggestions
```
This commit is contained in:
Mohamed Boudra
2025-10-23 11:26:36 +02:00
parent 8177aa0c2a
commit 85a0e46ba9
10 changed files with 130 additions and 16 deletions
@@ -15,6 +15,7 @@ import {
type WriteTextFileResponse,
} from "@agentclientprotocol/sdk";
import { v4 as uuidv4 } from "uuid";
import { expandTilde } from "../terminal-mcp/tmux.js";
import type {
AgentStatus,
AgentInfo,
@@ -113,7 +114,7 @@ export class AgentManager {
*/
async createAgent(options: CreateAgentOptions): Promise<string> {
const agentId = uuidv4();
const cwd = options.cwd;
const cwd = expandTilde(options.cwd);
// Validate that the working directory exists
try {
@@ -380,7 +380,7 @@ export async function createSession(name: string): Promise<TmuxSession | null> {
/**
* Expand tilde in path to home directory
*/
function expandTilde(path: string): string {
export function expandTilde(path: string): string {
if (path.startsWith("~/")) {
const homeDir = process.env.HOME || os.homedir();
return path.replace("~", homeDir);