Skip to content

Commit b5a2882

Browse files
refactor(chat): move useRunTurn to hooks/ subdirectory
- Add Chat/hooks/ for future hook extractions - Export via Chat/hooks/index.ts barrel
1 parent 4d42b89 commit b5a2882

4 files changed

Lines changed: 92 additions & 4 deletions

File tree

BACKLOG.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# BACKLOG (DO NOT COMMIT THIS)
2+
3+
- [ ] refactor: improve Chat.tsx
4+
- [ ] feat: find_files, add option `respectGitignore` using ignore dependency
5+
6+
- [ ] feat: task (update_plan tool call)
7+
- [ ] feat: `/plan` create concrete implementation plan with outline `<proposed_plan>` (useful when the client has special rendering support for that tag)
8+
9+
- [ ] feat: Ctrl+T or Ctrl+O for diff expansion
10+
- [ ] refactor: save maxToolTurns (MAX_TOOL_TURNS) in config
11+
12+
- [ ] fix: marginTop 1 between rendered markdown and input
13+
- [ ] feat: check `ollama` binary exists; if not, ask to download
14+
15+
```sh
16+
curl -fsSL https://ollama.com/install.sh | sh
17+
```
18+
19+
- [ ] fix: support drag-and-drop image attachment
20+
- attachment supports file extensions like pdf
21+
- [ ] fix: attachment tokens render at the current cursor position, not always before the text
22+
23+
codex "implement this UI in React" --image mockup.png
24+
25+
- [ ] feat: auto pull model when using cli run
26+
- code-ollama run "review" (remove model or use option --model)
27+
- [ ] feat: /host or /server or /config for OLLAMA_HOST
28+
29+
- [ ] feat: queue messages
30+
31+
- [ ] feat: FileSuggestions ignores .gitignore (/settings?)
32+
33+
- [ ] feat: run tools/commands in sandbox
34+
- [ ] feat: prompt to trust and remember directory
35+
- [ ] build: add executables to release (Linux, Mac, Windows)
36+
- [ ] feat: parallel agent calls (multiple concurrent streams sharing state)
37+
- [ ] feat: `/stats` - duration (m s), messages (user, tool calls), context used
38+
39+
- [ ] feat: skills, markdown files in `~/.code-ollama/skills/`
40+
- [ ] feat: mcp servers
41+
42+
```
43+
/mcp
44+
45+
🔌 MCP Tools
46+
47+
• No MCP tools available.
48+
49+
• clickup
50+
• Auth: Unsupported
51+
• URL: https://mcp.clickup.com/mcp
52+
• Tools: (none)
53+
54+
• codex_apps
55+
• Auth: Bearer token
56+
• Tools: (none)
57+
58+
• figma
59+
• Auth: Unsupported
60+
• URL: https://mcp.figma.com/mcp
61+
• Tools: (none)
62+
```
63+
64+
- [ ] feat: show tip
65+
66+
```
67+
Tip: Use /mcp to list configured MCP tools.
68+
Tip: New Use /fast to enable our fastest inference with increased plan usage.
69+
```
70+
71+
- [ ] ? for shortcuts
72+
73+
```
74+
/ for commands ! for shell commands
75+
ctrl + j for newline tab to submit message
76+
@ for file paths ctrl + v to paste images
77+
ctrl + g to edit in external editor esc esc to edit previous message
78+
ctrl + r search history ctrl + c to exit
79+
⌥ + , reasoning down ⌥ + . reasoning up
80+
shift + tab to change mode ctrl + t to view transcript
81+
```
82+
83+
- [ ] feat: make request with Jina Reader API key
84+
- [ ] Enter/Space to select
85+
- [ ] test: E2E
86+
- [ ] refactor: state management? zustand vs xstate
87+
- [ ] when there's a migration, add "version" to session metadata.json

src/components/Chat/Chat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import { ollama, screen, tools } from '@/utils';
1919

2020
import { ChatInput, type SubmittedInput } from './ChatInput';
2121
import { ChatActionType, InterruptReason } from './constants';
22+
import { useRunTurn } from './hooks';
2223
import { chatReducer, createInitialChatState } from './reducer';
23-
import { useRunTurn } from './useRunTurn';
2424

2525
interface Props {
2626
initialMessages?: ollama.Message[];

src/components/Chat/hooks/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { useRunTurn } from './useRunTurn';
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ import {
1010
ChatActionType,
1111
PLAN_CHECKLIST_REMINDER,
1212
PLAN_EXECUTION_REMINDER,
13-
} from './constants';
13+
} from '../constants';
1414
import {
1515
hasExecutablePlan,
1616
isDirectPlanAnswer,
1717
isPlanModeFinal,
1818
isPlanNeedsInput,
19-
} from './plan';
20-
import type { ChatAction } from './types';
19+
} from '../plan';
20+
import type { ChatAction } from '../types';
2121

2222
const MAX_TOOL_TURNS = 25;
2323
const MAX_TOOL_INTENT_CORRECTIONS = 2;

0 commit comments

Comments
 (0)