Skip to content

Commit 23cb0d2

Browse files
committed
Merge branch 'dev'
2 parents d89b4b3 + 0239208 commit 23cb0d2

4 files changed

Lines changed: 49 additions & 11 deletions

File tree

‎README.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ Unlimited AI coding in free chatbots for VS Code, Cursor and Windsurf. The best
1616

1717
## Introduction
1818

19-
🤔 **Is this legal?**
19+
👨‍⚖️ **Is it legal?**
2020

2121
Code Web Chat only starts new conversations. This idea is borrowed from [Firefox](https://support.mozilla.org/en-US/kb/ai-chatbot) and is not against any of the supported chatbots terms of use. Contributors should not submit pull requests implementing further chat automations of any kind, as these will be rejected.
2222

2323
> [!NOTE]
2424
> The _Apply response_ button placed under responses is not a means of automatic output extraction, it's an alias for the original _copy to clipboard_ button.
2525
26-
🧠 **Master model guidance through context ownership**
26+
🧑‍💻 **Guide the model through context ownership**
2727

2828
Large language models (LLMs) are trained on vast datasets targeting many use cases. For code generation, a model's training involves analyzing millions of simulated problem-solving flows, such as arriving at the accepted answer from a given StackOverflow question. For the purpose of agentic coding, models are trained on an additional layer of data that simulates gathering context and planning its next steps.
2929

30-
Because the model is only as smart as examples it has seen in its pre-training stage, the possible coverage of real-world scenarios when approached at a high level is fundamentally limited.
30+
Because the model is only as smart as examples it has seen in its pre-training stage, the possible coverage of real-world problems when approached at a high level is fundamentally limited.
3131

3232
Therefore, CWC is designed to align with LLMs' true capabilities—that is, code generation in a controlled signal-to-noise ratio environment. Controlled by you, the engineer.
3333

34-
🤝 **Meet the non-agentic workflow**
34+
👋 **Meet the non-agentic workflow**
3535

3636
Select folders and files for context, enter instructions, and send message via...
3737

@@ -94,10 +94,10 @@ Install the [open-source](https://github.com/robertpiosik/CodeWebChat/blob/dev/p
9494
- Z
9595

9696
> [!NOTE]
97-
> All web page interactions of submitting the message are handled by the [content script](https://github.com/robertpiosik/CodeWebChat/blob/dev/packages/browser/src/content-scripts/send-prompt-content-script/send-prompt-content-script.ts).
97+
> All web page interactions of submitting the message are handled by the following [content script](https://github.com/robertpiosik/CodeWebChat/blob/dev/packages/browser/src/content-scripts/send-prompt-content-script/send-prompt-content-script.ts).
9898
9999
> [!TIP]
100-
> With the browser extension you can include markdown-parsed websites in context! Go to target website, click the extension's icon in the browser's toolbar and click _Enable for context_. The website will appear in the context panel immediately, ready for selection like any other folder or file in the workspace.
100+
> With the browser extension you can include markdown-parsed websites in context. Go to target website, click the extension's icon in the browser's toolbar and click _Enable for context_.
101101
102102
## API Tools
103103

‎packages/shared/src/constants/dictionary.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export const dictionary = {
8484
URL_OVERRIDE_DIFFERENT_DOMAIN: (preset_name: string) =>
8585
`URL override for preset "${preset_name}" was discarded because it uses a different domain.`,
8686
CONTEXT_SIZE_WARNING: (threshold: string, percentage: number) =>
87-
`Context exceeds threshold of ${threshold} tokens by ${percentage}%. Unreasonably large context may degrade response quality, hurt plan's usage allowance or incur significant costs.`,
87+
`Context exceeds threshold of ${threshold} tokens by ${percentage}%. Unreasonably large context may degrade response quality, hurt usage allowance or incur unexpected costs.`,
8888
FAILED_TO_CREATE_FILE: (file_path: string) =>
8989
`Failed to create file: ${file_path}`,
9090
FAILED_TO_APPLY_CHANGES_TO_FILE: (file_path: string) =>

‎packages/vscode/src/commands/checkpoints-command/checkpoints-command.ts‎

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ export const checkpoints_command = (
100100
}
101101

102102
const visible_checkpoints = checkpoints.filter((c) => !c.is_temporary)
103+
104+
visible_checkpoints.sort((a, b) => {
105+
if (a.starred && !b.starred) return -1
106+
if (!a.starred && b.starred) return 1
107+
return b.timestamp - a.timestamp
108+
})
109+
103110
quick_pick.items = [
104111
{
105112
id: 'add-new',
@@ -118,13 +125,19 @@ export const checkpoints_command = (
118125
...visible_checkpoints.map((c, index) => {
119126
return {
120127
id: c.timestamp.toString(),
121-
label: c.title,
128+
label: c.starred ? `$(star-full) ${c.title}` : c.title,
122129
description: dayjs(c.timestamp).fromNow(),
123130
detail: c.description,
124131
checkpoint: c,
125132
index,
126-
buttons:
127-
c.title == 'Created by user'
133+
buttons: [
134+
{
135+
iconPath: new vscode.ThemeIcon(
136+
c.starred ? 'star-full' : 'star-empty'
137+
),
138+
tooltip: c.starred ? 'Unstar' : 'Star'
139+
},
140+
...(c.title == 'Created by user'
128141
? [
129142
{
130143
iconPath: new vscode.ThemeIcon('edit'),
@@ -135,7 +148,8 @@ export const checkpoints_command = (
135148
tooltip: 'Delete'
136149
}
137150
]
138-
: undefined
151+
: [])
152+
]
139153
}
140154
})
141155
]
@@ -208,6 +222,29 @@ export const checkpoints_command = (
208222
}
209223
if (!item.checkpoint) return
210224

225+
if (e.button.tooltip == 'Star' || e.button.tooltip == 'Unstar') {
226+
const checkpoint_to_update = checkpoints.find(
227+
(c) => c.timestamp == item.checkpoint?.timestamp
228+
)
229+
if (checkpoint_to_update) {
230+
checkpoint_to_update.starred = !checkpoint_to_update.starred
231+
await context.workspaceState.update(
232+
CHECKPOINTS_STATE_KEY,
233+
checkpoints
234+
)
235+
}
236+
await refresh_items()
237+
const active_item = quick_pick.items.find(
238+
(i) =>
239+
(i as any).checkpoint?.timestamp === item.checkpoint?.timestamp
240+
)
241+
if (active_item) {
242+
quick_pick.activeItems = [active_item]
243+
}
244+
quick_pick.show()
245+
return
246+
}
247+
211248
if (e.button.tooltip == 'Edit Description') {
212249
is_showing_dialog = true
213250
const new_description = await vscode.window.showInputBox({

‎packages/vscode/src/commands/checkpoints-command/types/checkpoint.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ export interface Checkpoint {
33
title: string
44
description?: string
55
is_temporary?: boolean
6+
starred?: boolean
67
}

0 commit comments

Comments
 (0)