eklavya 1.69.1 → 1.69.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eklavya",
3
3
  "displayName": "Eklavya",
4
- "version": "1.69.1",
4
+ "version": "1.69.2",
5
5
  "description": "Learn while your agent works. Turns coding-agent generation time into adaptive, Socratic learning grounded in the code being written.",
6
6
  "author": {
7
7
  "name": "Ajay Kumar"
@@ -518,7 +518,7 @@ export const register: Register = on => {
518
518
  value={s.draft.text}
519
519
  submitLabel="keep"
520
520
  onInput={(value: string) => (locked ? undefined : typeOther($, value))}
521
- onSubmit={(value: string) => (locked ? undefined : typeOther($, value))}
521
+ onSubmit={() => (locked ? undefined : keepOther($))}
522
522
  />
523
523
  </Box>
524
524
  ) : null,
@@ -561,6 +561,19 @@ async function typeOther($: EngineInterface, value: string): Promise<void> {
561
561
  await update($, quiz, (s: PanelState) => (s.step === 'awaiting' || s.step === 'error' ? { ...s, draft: { ...s.draft, text: value } } : s))
562
562
  }
563
563
 
564
+ /** Enter in the Other box keeps what is typed (onInput already stored it, so the host's cleared value never overwrites it) and moves focus to Submit. */
565
+ async function keepOther($: EngineInterface): Promise<void> {
566
+ // The primary button is keyed `retry` after a failed grade and `submit` otherwise; only the drawn one accepts focus.
567
+ for (const key of ['submit', 'retry']) {
568
+ try {
569
+ await $.ui.focus({ requestId: PANE, key })
570
+ return
571
+ } catch {
572
+ /* Fail open: the text stays in the draft without the focus move. */
573
+ }
574
+ }
575
+ }
576
+
564
577
  async function skip($: EngineInterface): Promise<void> {
565
578
  await submit($, { kind: 'skip' })
566
579
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eklavya",
3
- "version": "1.69.1",
3
+ "version": "1.69.2",
4
4
  "description": "Learn while your agent works — local knowledge graph, spaced repetition, and quiz gating for agent-assisted development.",
5
5
  "license": "MIT",
6
6
  "repository": {